mle icon indicating copy to clipboard operation
mle copied to clipboard

More multi-cursor commands

Open sc0ttj opened this issue 2 years ago • 2 comments

Hi there,

Which commands actually refer to using multiple cursors?

I'm trying to map the key commands of mle to be as similar to Sublime Text (or Micro) as possible.

Specifically I'd like to highlight a word with Ctrl-Shift-Right, then press either Ctrl-d or Alt-n to create the new cursor, and highlight the next occurance of the word. I'd like to be able to go back to the first cursor only, removing all others, using the ESC key.

Thanks.

sc0ttj avatar Jan 26 '22 21:01 sc0ttj

Hello, sorry for the delayed reply. There's no built-in command that does that, but I think you could do it with a user script or a macro. The built-in multiple cursor keybindings are (by default):

  • C-/ .: drop sleeping cursor
  • C-/ a: wake all sleeping cursors
  • C-/ /: remove all but the primary cursor
  • C-/ ': when highlighted across multiple lines, drop a column of cursors (similar to micro's SpawnMultiCursorSelect)
  • C-/ l: with multiple cursors active, pad with whitespace to make them all aligned
  • C-/ (at an isearch prompt): drop a cursor at every match

I don't use multiple cursors that often, but when I do, it's mostly the last 4 commands.

I can take a shot at implementing SpawnMultiCursor, SpawnMultiCursorUp, SpawnMultiCursorDown from micro.

adsr avatar Feb 23 '22 05:02 adsr

Hello, sorry for the delayed reply. There's no built-in command that does that, but I think you could do it with a user script or a macro. The built-in multiple cursor keybindings are (by default):

  • C-/ .: drop sleeping cursor
  • C-/ a: wake all sleeping cursors
  • C-/ /: remove all but the primary cursor
  • C-/ ': when highlighted across multiple lines, drop a column of cursors (similar to micro's SpawnMultiCursorSelect)
  • C-/ l: with multiple cursors active, pad with whitespace to make them all aligned
  • C-/ (at an isearch prompt): drop a cursor at every match

I don't use multiple cursors that often, but when I do, it's mostly the last 4 commands.

I can take a shot at implementing SpawnMultiCursor, SpawnMultiCursorUp, SpawnMultiCursorDown from micro.

Sleeping cursor not working on MacOS

allestaire avatar Jun 22 '23 14:06 allestaire