Vim: Add cursor to every copy of selection in motion #26836
mythmon
started this conversation in
Feature Ideas / Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Today Zed supports the keybinding
g l
to add a new cursor to the next occurrence of the selection, andg a
to add cursors to all occurrences. I'd like something in between though. Often I find myself doing some refactoring that would benefit from multiple cursors, but I don't want to select the same pattern throughout the entire file.It would be great to be able to say something like "add a cursor to all occurrences inside this function body" or "on this line". Using the motions like
p
for parapgraph or{
for inside a curly-brace delimited area would work well, and leverage the existing concepts of motions.Beta Was this translation helpful? Give feedback.
All reactions