Implemented find char with leap/easyMotion/flash style #14844
+364
−0
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.
Please note this is not a replacement for
goto_word- that is still the fastest way to navigate within the document window.However, I was always frustrated by how primitive
f/F/t/Ffamily of commands are to select portions of line(s).This PR allows me to fully replace
f/F/t/Tin my personal keybindings for a much faster and precise selections within the current or adjacent lines.Some more details:
Entermoves/extends to end of line similar to what built-in commands doflash_forward, extend_flash_forward, flash_backward, extend_flash_backward, flash_forward_till, extend_flash_forward_till, flash_backward_till, extend_flash_backward_tillOverall, the code is highly unoptimized and surely contains bugs, hence making it a draft.
And I can understand that the chances of its inclusion are low.
But it's still quite useful for me and I thought it could benefit others, too.
And last but not least many thanks to @shybovycha for the original implementation in this (now rejected) PR: #14644