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

Feature request: add option to disable wrap-around #68

Open
aspiers opened this issue Dec 15, 2020 · 5 comments
Open

Feature request: add option to disable wrap-around #68

aspiers opened this issue Dec 15, 2020 · 5 comments

Comments

@aspiers
Copy link

aspiers commented Dec 15, 2020

Given that M-< and M-> allow easy jumping to the first/last matches, I'd personally prefer if ctrlf-{forward,backward}-* didn't wrap around from last to first match and vice-versa. Currently I find it too easy to press repeatedly (say) C-s and wrap around when I didn't want to. Any chance of having a defcustom for disabling this behaviour?

@raxod502
Copy link
Member

Yep, that sounds totally reasonable. And I think the implementation will not be too hard as some of the relevant primitives already exist; for example, the :bound 'wraparound argument passed to ctrlf--search currently could be changed to something conditional.

@raxod502 raxod502 changed the title FR: add option to disable wrap-around Feature request: add option to disable wrap-around Dec 21, 2020
@jdtsmith
Copy link

I used to wait for the (ding) when reaching the end of the buffer; might be nice to optionally re-enable that.

@raxod502
Copy link
Member

I think that's a fine idea as well, thanks for the suggestion!

@kings2u
Copy link

kings2u commented Aug 30, 2021

I'll cast my vote in favor of this feature. Personally I wouldn’t mind still being able to wrap around but at least getting a (ding 1) sent to visually signal when the wrapping occurs. Thank you for this tremendous package!

@kimim
Copy link

kimim commented May 29, 2023

I vote for this. Make a warning before next wraparound is better.
Or even better, when I am at the end of the buffer, C-s will locate to the nearest match backward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants