Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge all jump strategies into single one #18

Open
isc30 opened this issue Oct 23, 2020 · 4 comments
Open

Merge all jump strategies into single one #18

isc30 opened this issue Oct 23, 2020 · 4 comments
Labels
question Further information is requested

Comments

@isc30
Copy link

isc30 commented Oct 23, 2020

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.

@isc30 isc30 changed the title InvokePeasyMotionSingleCharJump? Merge all jump strategies into single one Oct 23, 2020
@mm6502
Copy link

mm6502 commented May 29, 2021

I'd like it to work just like the FindJump for VS Code...

@msomeone
Copy link
Owner

msomeone commented May 23, 2024

Single character version is here. But unfortunately no plans to merge to single jump-strategy or do something similar to FindJump. Maybe FindJump can be implemented as a separate extension. @mm6502 @Sulfur-CK @samaursa Does FindJump behavior matches what @isc30 described?

@msomeone msomeone added the question Further information is requested label May 23, 2024
@mm6502
Copy link

mm6502 commented May 25, 2024

Basically, yes. It narrows down the possible jump locations as you type the word you are trying to jump to.

@Sulfur-CK
Copy link

@msomeone yes, FindJump behavior is exactly what I am hoping for. It's quite natural to type a few letters of the word/symbol. With PeasyMotion 2 letter jump, I routinely type in one too many letters and have to restart the search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants