Support command for jumping to word location based on key #10218
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I have added a command that can be used to jump to a word in the command line. Each word is represented with a letter and pressing that letter jumps to that word. It can also be combined with visual mode to select to that word. I have made a quick video outlining its operation.
recording.webm
I have implemented something similar for my fork of the helix editor (it uses partly the same code and is available on my github account) and used it for a few moths now. I find it very useful instead of using vim like find to command when the character in question is repeated (like the / in paths).
I am adding this pull request as a start of a discussion on how to implement this and I am open to adapting it more to match the architecture of the reader subsystem of fish if necessary.
I use the following fish config with the command (since i use colemak the default variables are set up for that, but I have tried to make a qwerty variant for users of less esoteric keyboard layouts)
I can help adding documentation and changelog once I know that this is something that is found worthwhile and that the shape of the feature won't change too much.
TODOs: