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

Allow traversing directionally after bidirectional search #210

Open
tvdab opened this issue Mar 16, 2024 · 3 comments
Open

Allow traversing directionally after bidirectional search #210

tvdab opened this issue Mar 16, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@tvdab
Copy link

tvdab commented Mar 16, 2024

When doing a bidirectional search, the next_target and prev_target keybindings doesn't work. I would love if next_target would jump to the next match in the direction of the end of the buffer and prev_target would jump in the other direction.

@ggandor
Copy link
Owner

ggandor commented Mar 16, 2024

You can use repeat keys (:h leap-repeat), which effectively do the same.

To make traversal mode work for non-directional motions, we should maintain additional tables (winlocal-directional-idx : original-idx) for each window, I'm not sure it would worth the effort. But I will give it some thought.

@ggandor
Copy link
Owner

ggandor commented Mar 16, 2024

Related #136.

@ggandor ggandor added the enhancement New feature or request label Mar 16, 2024
@tvdab
Copy link
Author

tvdab commented Mar 16, 2024

Thx for your fast reply. It seems to work :)

@ggandor ggandor changed the title bidirectional search - next_target and prev_target not working Allow traversing the matches directionally after bidirectional search Mar 30, 2024
@ggandor ggandor changed the title Allow traversing the matches directionally after bidirectional search Allow traversing directionally after bidirectional search Mar 30, 2024
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