-
Notifications
You must be signed in to change notification settings - Fork 22
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
Helm-minibuffer-history interferes with backward search: simple solution #51
Comments
I ran into the same issue, but with (use-package ctrlf
:init
(ctrlf-mode +1)
:config
(add-to-list 'ctrlf-minibuffer-bindings '("C-r" . nil))) |
Should be fixed, please test. |
Works for me. Thanks! |
This works for me too. Big thanks! Although I am a bit confused as to why this works, since I thought the changes in bindings for |
Perhaps it has to do with the fact that |
I see! |
I've come up with a more robust keymapping scheme. It's a bit of a hack but should address the conflicting needs of these various bug reports. My new solution should solve #51, #52, #67, and #80 simultaneously while also working with |
In my testing the new change seems to solve the problem for |
I get the same interference with |
I don't think so. Can you open a separate issue for that? I just tested by setting (define-key minibuffer-local-map (kbd "C-r") (lambda () (interactive) (message "Hello world!"))) to emulate what Helm does in binding a key in Notably, running (add-to-list 'ctrlf-minibuffer-bindings '("C-r" . nil) as you say you've done should not disable |
It stopped being a problem and I can't recreate it |
When using helm and loading the default keybindings in
helm-config
,helm-minibuffer-history
is bound toC-r
inminibuffer-local-map
, which the minibuffer keymap used in ctrlf inherits from. PressingC-r
will then callhelm-minibuffer-history
instead of the remappedisearch-backward
fromctrlf-mode-bindings
.I solved this simply for my case by:
I don’t know if anything should be done on the side of ctrlf to prevent this, or if it should be left to the user (perhaps with a note in the readme?). One idea otherwise is to bind
C-r
toisearch-backward
andC-s
toisearch-forward
inctrlf-minibuffer-bindings
to prevent any other command from overriding it, but I suppose that's not a very good idea either as we can’t assume those are the keys the user wants to use.What we would like to do is unbind (or bind correctly) any bindings for the keys used for
isearch-forward/backward
when the minibuffer keymap is created, but I don’t know if this is possibleThe text was updated successfully, but these errors were encountered: