ctrlf icon indicating copy to clipboard operation
ctrlf copied to clipboard

Feature request: add option to disable wrap-around

Open aspiers opened this issue 3 years ago • 5 comments

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?

aspiers avatar Dec 15 '20 01:12 aspiers

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 avatar Dec 21 '20 22:12 raxod502

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

jdtsmith avatar Apr 10 '21 19:04 jdtsmith

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

raxod502 avatar Apr 18 '21 20:04 raxod502

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!

kings2u avatar Aug 30 '21 02:08 kings2u

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.

kimim avatar May 29 '23 04:05 kimim