Replies: 1 comment
-
IMO this is not a large enough change to warrant adding a new command. The jump mode we have from #8875 is not meant to be so precise that you can always jump to the exact position you want to get to. It's meant to be combined with other motions like t, f, w, etc. or searching Maybe this behavior could be part of a larger change in the way we treat underscores (like for #2429 / #5188), so that customizing a word boundary could also change the behavior of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For context, this feature request is related to #510 and the implementation in #8875.
Currently the way the amp-like jump command works is by filtering by words. This is the best choice for the default command, however, I would like to propose a second command which works on what I would like to call "chunks". There are times where instead of jumping and selecting a whole word, selecting part of a word is desired. An example would be changing
OnceCell
toOnceLock
, instead of jumping to the beginning of the word and selecting the whole thing, jumping to the second part of the word,Cell
would allow a replacement to be done in 1 keystroke.Current implementation:

New command:

it would also add a new jump command:

I've got a proof of concept here for how it would work, I'll rebase it to 24.03 and create a PR once that version is released.
Some open questions to answer:
_
back in, so I'm not sure if this is the right approachBeta Was this translation helpful? Give feedback.
All reactions