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
Proposal: add swiper option to go to the start of the match, instead of its end #942
Comments
What's the use case? Going to the end of the match is a very reasonable default; |
After using vim, and now evil, I'm used to this behaviour - vim's and evil's default search (both evil's own search and evil's isearch wrapper) go to the start. I common use case I have is:
Another use case I have (again vim habit):
It's all personal preference based on muscle memory I guess. |
Look at this code already in (when (and (bound-and-true-p evil-mode)
(eq evil-search-module 'evil-search))
(add-to-history 'evil-ex-search-history re)
(setq evil-ex-search-pattern (list re t t))
(when evil-ex-search-persistent-highlight
(evil-ex-search-activate-highlight evil-ex-search-pattern))) Maybe there's a way to make cgn to work with that. Otherwise, please PR with a new user option, off by default. |
I think adding the user option as proposed here (thus moving to beginning of match) is probably the way to go, if |
Hi, and thanks for this package.
Would you accept a PR which adds an option to swiper which will make swiper to go the beginning of the match, not its end?
Something like this:
The text was updated successfully, but these errors were encountered: