Move/Swap selection and move next/previous word or symbol #3981
-
Hi, I have two ideas/features that atleast I personally would like to have. The first one is a command to move/swap selection followed by a movement: The other idea is a simple movement command that moves to the next word or symbol, whatever comes first. With this example text: Foo(Bar("")) I opened a discussion here because I was curious if this is something worth putting into the editor or if I should wait for a plugin system, or maybe somebody knows of a better way |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi 👋🏻 The second idea I'm curious as to why you would want it. Have you tried using tree sitter to navigate? |
Beta Was this translation helpful? Give feedback.
Hi 👋🏻
For your first idea, check https://docs.helix-editor.com/keymap.html#selection-manipulation and
A-(
A-)
. What would it mean toswap k
orswap p
? I think(
and)
represents the relevant motions for this rotation.The second idea I'm curious as to why you would want it. Have you tried using tree sitter to navigate?
A-n
A-p
A-i
A-o
.