Both iy-go-to-char
and zap-up-to-char
take a prefix argument and a character argument prompted for in the minibuffer. Both functions seems to implement this by using (interactive "p\ncPrompt string: ")
. But they behave very differently in multiple-cursors-mode
: iy-go-to-char
only prompts once for the character and uses that same one for every cursor; zap-up-to-char
prompts for a character for each cursor.
I'd like to know why multiple-cursors treats them differently, but above all I'd like to have them both behave as iy-go-to-char
does: single prompt, reuse that character for all cursors.
mc/cursor-face
and you can customize it. I modified mine and I use adisplay
property instead -- but that is beyond the scope of your question and would require other tweaks/ mods.multiple-cursors
will execute the same action at all cursor locations without prompting again. And for some, a user entry will be required in the minibuffer interactive prompt for each cursor location. Note that this happens even if the user has agreed for that command to be executed at all cursor locations.mc/edit-lines
orM-S-c M-S-c
(3)C-a C-SPC C-e
(4)M-x append-to-register
(5) Say yes to Do append-to-register for all cursors? (6) multiple cursors will still prompt theM-x
ido completion and what register to append to for each cursor location.