-
Notifications
You must be signed in to change notification settings - Fork 22
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
Go to next match after "ending" search #127
Comments
The default binding for this would be |
Ah yes this comes close! isearch keeps the highlighting, that's quite neat, maybe there is a way to use the search term as input for the corresponding highlight-<...> function or ctrlf could implement similar behavior to isearch in that regard. For now, how would I bind C-s C-s though? As "macro" ? |
Sure, those things all seem like reasonable possibilities, however I'm not sure offhand what the best approach would be. I don't think it would be possible to bind I think what we'd probably want to do is copy this function but have it use the last search query rather than using symbol at point: Lines 1414 to 1431 in 63d27a0
|
I played around with this a little bit, what we basically need is use (car ctrlf-search-history) + the position of the next result if there is one. I didn't find a function that returns the position of the next match though, if that would exist this would be possible right? |
Why do you need the position of the next match, rather than simply moving to it by invoking |
Hi,
I'm currently checking out ctrlf, fantastic package, but I'm missing one "key" functionality. I come from vim and I really like the way when searching with "/" you press enter, navigate around and edit some text, and then you can press "n" to go to the next occurence.
How do I replicate this behavior with ctrlf? In isearch I can do this via isearch-repeat-forward. I kinda need ctrlf-repeat-forward.
Thanks for the help in advance :)
The text was updated successfully, but these errors were encountered: