adsr/mle

More multi-cursor commands

sc0ttj opened this issue · 3 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.

adsr commented

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.

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

adsr commented

@allestaire Apologies, I just saw your comment. Can you reproduce on latest and share which terminal you're using? Thanks.