Add selection at next match: a handy keybind #12683
Replies: 2 comments 1 reply
-
Isn't that similar to how select mode works with n / N?
|
Beta Was this translation helpful? Give feedback.
-
Particularly this part is very useful, thanks for posting! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In my config, under
[keys.normal]
and[keys.select]
I added two bindings:This makes
Alt+N
search for the next occurrence of whatever is under the cursor, and create a new selection for this occurrence. This is very similar to VSCode'sCtrl+D
"Add Selection To Next Find Match".fluid-and-then.mp4
The next best thing is that sometimes you need to skip a match. No binds are needed, a regular
N
press does the job:helix-alt-n.mp4
I'm a bit surprised the above two aren't defaults. It's worth nothing
Alt+N
is normally bound to "Select next sibling node in syntax tree (TS)," but it's not something have I ever used.Beta Was this translation helpful? Give feedback.
All reactions