-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add Alt-U shortcut to clear search highlight #268
Conversation
How did you test this? You can run Your PR did not work for me when I tested it. Also, from
An Alt-combination might have worked, but Esc (same as ESC, short for "Escape") is used for exiting |
I tested it using the
and the highlighted occurrences of My reason for this PR is that when reading a large file I will commonly use a search to find a specific part of the file. However, after I've found the part of the file I want, I no longer need the text to be highlighted, and find it distracting. |
If you'd prefer it to use a different Alt-combination I could certainly make that change. Otherwise, if you aren't interested in this shortcut being in Either way, thanks for your work developing and maintaining |
I'm missing something here.
In less, Alt-U does nothing. Is this PR about adding less' ESC-U key combination to moar? Or is this PR about adding Alt-U support to moar, which less does not have? What am I missing here? Alt key combos might work, but I'm skeptical about ESC. |
I'm still very surprised that the key combination doesn't do anything for you. I've tried on both Arch and Ubuntu, and I've switched keyboard layouts from US English to a couple of European ones (German and Swedish) and it behaved the same every time. I can see in |
Which key combination? Alt-U or ESC-u? There is no connection between the two.
When you say that Alt-u "maps to ESC-u", can you clarify this? Alt and ESC are completely unrelated. When you say that one "maps to" the other, what exactly do you mean by that? Sorry if I'm being dense here, but I'm super confused. |
Or put in another way, which of these two are you after?
|
Adds the Alt-U keybinding from
less
to clear highlights on searched text.