-
Notifications
You must be signed in to change notification settings - Fork 5
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
Failing I-search/Wrapped I-search message #7
Comments
Okay, so do you actually miss these messages? I like the cleaner look of the current version. The failing is already indicated in the search string by the The (over)wrapped information, isn't is kind of superseded by the lazy count? I also get the impression the wrap status is nonsense in Info nodes, which have a fancy wrap function to go to the next page. PS: Thanks for the little review of the package! |
When I tested the isearch-mb-mode, I somehow missed the message. I prefer to have the message for the simple reason that it is more aligned with the default isearch. In contrast to other verbose Emacs messages I never perceived the isearch wrap around messages as annoying. I like to be notified explicitly that a wrap around happened. Maybe I could get accustomed to only seeing the fail face? |
The amount of information that
So, in the end, the wrap information is the only one I care about. And actually I would rather know if I'm above or below the search starting point right now, as opposed to whether I've crossed across the bottom of the buffer. |
If that information would be shown somewhere, that would indeed be useful. Regarding the other things I don't feel as strongly, my main argument is that it may be better to stay closer to the defaults as long as they are not totally off. As I mentioned, I am fine with the wrap around message.
The lazy count is a bit problematic as an indicator since it has a delay. FAIL could be shown directly? |
How about some colors to indicate the wrap/fail status? Something like this: (advice-add
'isearch-lazy-count-format
:filter-return
(lambda (s)
(propertize s 'face (cond
((or isearch-error (not isearch-success)) 'error)
(isearch-wrapped 'warning)
(t 'success)))))
This improves in Emacs 28. |
I've been using the above snippet for a while, which adds different colors to the match count when the search wrapped or failed. I'm very much convinced it's the best UI for the purposes described here. However, I don't want to include this in isearch-mb because it's a general isearch matter (the advice above works on regular isearch as well). Therefore, I added it to the wiki and will close this issue. |
The prompt is replaced by these messages in normal isearch mode. This functionality is lost if isearch-mb-mode is active.
The text was updated successfully, but these errors were encountered: