Add selection at next match: a handy keybind #12683
Unanswered
ArthaTi
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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