-
Notifications
You must be signed in to change notification settings - Fork 328
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
acme: Reverse search #552
base: master
Are you sure you want to change the base?
acme: Reverse search #552
Conversation
Kool is the reverse of Look. It searches backwards from point.
Totally agree. The backwards search is so inconvenient (compared to the forward search), that unless I really need it, I just use forward search and cycle through the whole file. I thought about it many times that it would be nice if the shift key was changing the search direction. |
Since this patch is all about convenience, I agree it would be ideal if shift+MB3 searched backwards. I haven't looked enough at the code to be sure, but it looks to me like Acme uses two threads for mouse and keyboard handling. Therefore it might not be trivial to synchronise them into one event. Are there any examples of keyboard+mouse interaction in acme I can look at? |
Isn't it the same as |
Not really imo. The difference between |
As a different approach to solving the problem of escaping regexp special chars I've once thought about implementing the following feature from the Plan 9 grep (see
I think it's a reasonable, small enough feature that would make the experience with Plan 9 tools more consistent. |
Interesting, I didn't know that. Wonder how many other people do :D In any case, I feel that belongs in a separate PR if someone implements it: I still don't feel that makes backward search sufficiently convenient compared to forward search. In fact it would be less convienient than Kool, because you still have to re-type/snarf Maybe I should rename this PR: Easy reverse search? |
Definitely. It's a separate, albeit related issue.
The shift+MB3 would be really nice. But your approach, as is, might be a good starting point. Just a couple observations:
|
- I'd find it more convenient if the name of the reverse search command were so
mething like `Lookb`. `Look` is already present in the window tag [...]
Bikeshed! I think RLook (reverse look) is bit more intuitive. And
still just a single letter to type.
…--lyndon
|
This PR does two things:
I know about :-/ and :? but snarfing the needle to the tag and potentially escaping it is an annoyance. It would be more convenient if there was a mouse chord or key modifier for MB3, bypassing the tag completely. Suggestions or feedback?