Comments (23)
What major mode do you have enabled?
from evil-mc.
Some modes use a different command for inserting than self-insert-command. If you want to know what command is used run evil-mc-recording-command-on interactively and then check the Messages buffer
from evil-mc.
This is in any/all modes (emacs-lisp-mode, for example). I don't actually have an evil-mc-recording-command-on
function. When I run evil-mc-recording-debug-on
, and then run, say, evil-mc-make-all-cursors
on the word ":config" from the normal state, a bunch of cursors appear in the appropriate positions, and I get the message:
evil-mc Created 90 cursors matching "\_<:config\_>"
After that point, everything seems to operate any differently. I've got a bunch of cursors all over the place, but only the real one inserts text. No messages appear in the message buffer either.
from evil-mc.
Sorry, yea the correct function is evil-mc-recording-debug-on
. After calling that function, and assuming you have some active cursors, you should see some messages every time you do something. For example, what happens when you just try to move the cursors back and forth with b and w? In my messages buffer I see statements like evil-mc Command evil-forward-word-begin
.
from evil-mc.
Nope, nada. Just to confirm, b is bound to evil-backward-word-begin, and w to evil-forward-word-begin.
Enabled minor modes:
Enabled minor modes: Anzu Async-Bytecomp-Package Auto-Composition
Auto-Compression Auto-Encryption Blink-Cursor Column-Number Company
Company-Quickhelp Company-Statistics Diff-Auto-Refine Eldoc
Electric-Indent Erc-Autojoin Erc-Button Erc-Fill Erc-Hl-Nicks
Erc-Irccontrols Erc-List Erc-Log Erc-Match Erc-Menu Erc-Move-To-Prompt
Erc-Netsplit Erc-Networks Erc-Noncommands Erc-Pcomplete Erc-Readonly
Erc-Ring Erc-Spelling Erc-Stamp Erc-Track Erc-Track Evil-Commentary
Evil-Leader Evil-Local Evil-Mc Evil-Smartparens Evil-Surround
Evil-Visualstar File-Name-Shadow Flx-Ido Font-Lock Git-Gutter
Global-Anzu Global-Evil-Visualstar Global-Font-Lock Global-Git-Commit
Global-Undo-Tree Helm-Autoresize Hl-Line Hs Ido-Everywhere
Ido-Ubiquitous Keyfreq Keyfreq-Autosave Linum Menu-Bar Mouse-Wheel
On-Screen-Global Override-Global Persp Prettify-Symbols Projectile
Projectile-Global Pyvenv Rainbow-Delimiters Recentf Savehist
Shell-Dirtrack Show-Smartparens Smartparens Tooltip Transient-Mark
Undo-Tree Visual-Line Which-Key
from evil-mc.
Would you mind trying it in the scratch buffer with the fundamental-mode. If you still get nothing, I'll look at it tonight with the minor modes that you have.
Yes b should be bound to evil-backward-word-begin
and w to evil-forward-word-begin
.
from evil-mc.
Same results in fundamental mode. I'll also try to bisect through this when I get a chance.
from evil-mc.
I don't see Evil
in your list of minor modes. evil-mode
must be enabled for evil-mc to work.
from evil-mc.
smartparens
and evil-smartparens
may interfere slightly just because it evil-mc does not account for their commands. Try disabling both just to see if it will make a difference.
from evil-mc.
Hmm, its not smartparens. You are right its very strange that evil is not in my minor most list. I have a feeling this might be because I use evil-local-mode instead of evil-mode.
from evil-mc.
Aha, thats it. evil-mc works when you activate evil with evil-mode
, but not with evil-local-mode
. Its the only evil plugin I've ever had this problem with.
from evil-mc.
Interesting. I think it's because in the evil-mc
initialization I check whether the evil-mode is enabled. There's a method in the evil-mc.el
file called evil-mc-initialize-keys
where I check for evil-mode
before setting up the key maps. I think I should find a better way of doing that.
from evil-mc.
I've updated the package, but nothing has changed regarding behavior or messages.
from evil-mc.
Maybe there are other issues then. This fix removed all checks for evil-mode
when doing the evil-mc
mode initialization. Does it make any difference if you use (evil-mc-mode 1)
vs (global-evil-mc-mode 1)
?
from evil-mc.
After making this changes I've noticed that it takes a few seconds from the moment I enable evil-mc-mode
until the key bindings take effect.
from evil-mc.
gloal-evil-mc-mode doesn't seem to fix it. I currently have this set up:
(add-hook 'evil-local-mode-hook #'evil-mc-mode)
Which successfully enables evil-mc-mode, albeit with the behavior laid out above.
from evil-mc.
Ok, I'll try to reproduce your setup
from evil-mc.
I'm also having the same problem
from evil-mc.
I think this is fixed in the master branch, but melpa doesn't seem to get updated for some reason. It would be great if one of you guys could try it out.
from evil-mc.
Actually, this is not fixed yet. I can still reproduce it
from evil-mc.
Ok, this is fixed now on Melpa. I just verified it in a sandbox.
from evil-mc.
This does indeed seem to be fixed :)
from evil-mc.
Fixed for me as well! Thanks :)
from evil-mc.
Related Issues (20)
- fake cursors not visible right after selection to cursors HOT 2
- Appending when in org-mode with evil-org-append-line does not work as expected HOT 1
- error: (wrong-type-argument listp evil-mc-make-all-cursors) on load HOT 4
- Is there ex command? HOT 1
- Support prefix numerical arguments
- Choose default behavior for unknown commands HOT 2
- Select each matched pattern after creating cursors
- evil-digit-argument-or-evil-org-beginning-of-line is a function alias and I can't figure out how to make it a known command HOT 4
- `ys` executes `evil-yank` rather than `evil-surround-edit`
- Feature Req: Add cursors to regex matches HOT 1
- evil-undo (`u`) hides fake cursors until they are moved
- evil-undo (`u`) unaligns the cursors
- `esc` unaligns the cursors, when real cursor on first column HOT 1
- [Question] how to make this function work for multiple cursors?
- Does not insert control characters on other cursors except current cursor inserted via `quoted insert`
- set evil-mc-enable-bar-cursor to nil when in terminal environment
- wrong location for substitution on fake cursors when `evil-move-cursor-back` is `nil`
- Multi Select and surround
- Can't execute "change". HOT 2
- Unbind evil-mc-cursors-map from "gr" keybindings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evil-mc.