Merge all jump strategies into single one
isc30 opened this issue · 4 comments
isc30 commented
InvokePeasyMotionTwoCharJump is awesome, yet doesn't work when the character is at the end of the line.
It would be awesome to also have a single character version of it.
It would work in the following way:
- Ctrl+Enter are pressed
- Normaly PeasyMotion is invoked, and the first character from the "selector" matches the one you are selecting.
- If a key from the selector is pressed, it follows normal approach: substract chars from selector until last one, and then select.
- If a different key is pressed, find that char in all viewport and label the results. Following keypressed are used to select the new selectors.
Note: if the selected char is at the end of the line, it puts the cursor at the end of the line instead.
This would keep peasymotion simple but with flexibility to fully select whatever you need.
Also labels would be somehow predictable which improves speed.
mm6502 commented
I'd like it to work just like the FindJump for VS Code...