Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More multi-cursor commands #58

Open
sc0ttj opened this issue Jan 26, 2022 · 3 comments
Open

More multi-cursor commands #58

sc0ttj opened this issue Jan 26, 2022 · 3 comments

Comments

@sc0ttj
Copy link

sc0ttj commented Jan 26, 2022

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
Copy link
Owner

adsr commented Feb 23, 2022

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 adsr changed the title Multiple cursors More multi-cursor commands Aug 27, 2022
@allestaire
Copy link

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
Copy link
Owner

adsr commented Oct 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants