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

Enter first two characters and jump to result #21

Open
Myzel394 opened this issue Mar 30, 2024 · 6 comments
Open

Enter first two characters and jump to result #21

Myzel394 opened this issue Mar 30, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@Myzel394
Copy link

It'd be nice if this plugin could mimick the behavior of nvim's leap plugin. Basically you enter the first two characters of the word you want to jump to, then some labels are shown and you enter to which label you'd like to jump to.

@IngoMeyer441
Copy link
Owner

This should be quite easy to add, I will look into this in the next days! 😄

@IngoMeyer441 IngoMeyer441 added the enhancement New feature or request label Apr 2, 2024
@IngoMeyer441
Copy link
Owner

Implemented in commit be1625a. Could you please test it?

To activate the leap mode as default mode, you can set in your .tmux.conf:

set -g @easy-motion-default-motion "bd-f2"

@Myzel394
Copy link
Author

Myzel394 commented Apr 5, 2024

Sure, I'll take a look! Gonna write you back once I got time to test it!

@Myzel394
Copy link
Author

Myzel394 commented Apr 5, 2024

All right just checked it - AWESOME! It's working exactly like in leap!

One, very small suggestion: In leap you already see some labels after the first character input (see https://github.com/ggandor/leap.nvim/blob/media/showcase.gif?raw=true) and you automatically jump to the first suggestion. If we could add that, that would be even more awesome! :D

@IngoMeyer441
Copy link
Owner

That sounds cool, but probably would need a major rewrite of some plugin logic parts 😅

@IngoMeyer441
Copy link
Owner

But my plugin also automatically jumps if only one occurrence exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants