Closed AloisJanicek closed 3 years ago
Any chance of a reproduction recipe starting from emacs -Q
or make plain
? Is the bug specific to counsel-recentf
, or can you also reproduce it with e.g. counsel-find-file
, which also has find-file-other-window
bound to the j
action?
I tried the following:
emacs -Q
(setq ivy-read-action-format-function #'ivy-read-action-format-columns) C-j
M-x package-initialize RET
M-x counsel-find-file RET ~/.emacs.d/init.el M-o j C-n
This visits my user-init-file
in a second window without issue. So more details would be welcome. TIA.
Oh sorry for misleading you, of course I meant ivy-hydra-read-action
.
ivy-read-action-format-columns
is working fine.
I am able to reproduce it with counsel-find-file
and j
other window action in HOME=/tmp/asdf emacs -Q
session if I enable MELPA and install counsel
, hydra
and ivy-hydra
from there. If I stay with ELPA, issue doesn't occur. Interesting.
(setq ivy-read-action-format-function #'ivy-hydra-read-action)
Shouldn't you be setting ivy-read-action-function
instead?
Shouldn't you be setting
ivy-read-action-function
instead?
Of course I should! I apologize again for the confusion. Thank you for your help, it works now.
(setq ivy-read-action-function #'ivy-hydra-read-action)
(setq ivy-read-action-format-function #'ivy-read-action-format-columns)
No worries! Thanks for confirming.
When setting
(setq ivy-read-action-format-function #'ivy-hydra-read-action)
Steps to reproduce:
counsel-recentf
M-o
on the desired candidatej
"other window" action on desired candidatej
to navigate one line down in newly opened file leads to complete buffer content deletion with an error:Unless user press some of the keys specified in
ivy-dispatching-done-hydra-exit-keys
or some of the head keys, user input remains trapped while hydra is nowhere to see. This is very confusing.I verified this behavior on vanilla-ish (init.el) emacs 27.1 setup.