-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make search commands respect the register prefix? #5112
Comments
Ideally,
|
Ah you're right. Regarding this:
What I had in mind was macro scripting, which makes having to press the prefix every time kinda irrelevant. But making these commands use the register used for starting the search is definitely a better approach. Agree on To sum it up, I guess the desired changes are:
|
While working on this, discovered another bug: register selection is unexpectedly discarded when the command keybinding is more than 1 key. For example: Will simply do a key remap for (so this is actually why I missed the fact that |
Not sure if this should be submitted as a bug or enhancement, so enhancement it is.
Currently serach-related commands do not respect the register prefix and are hard-coded to use
/
:search
rsearch
search_next
search_prev
extend_search_next
extend_search_prev
search_selection
make_search_word_bounded
global_search
While
search
,rsearch
, andglobal_search
use a prompt, the register/
is still used for completion.I wonder if this is intentional, given how consistent it is that all search commands discard the register input. Otherwise I'd love to send a PR.
The text was updated successfully, but these errors were encountered: