You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The suggestion in README.md to enable recursive minibuffers (via (setq enable-recursive-minibuffers t) led me to think that commands like M-x should be usable from within the swiper minibuffer.
However, I saw something I didn't expect when I tried this.
I engaged swiper (C-s), and navigated to a completion.
From within that swiper minibuffer, I typed M-x (bound to counsel-M-x) to call ivy-alt-done (I'd forgotten the hotkey)
The entire contents of the buffer that I was on before I started swiper (that is, the buffer I was searching in with swiper) were replaced with the text "ivy-alt-done".
Instead, what I wanted was for ivy-alt-done to be called in the swiper minibuffer I left.
This is reproducible with a minimal setup (emacs -Q, etc.).
This seems like exactly the sort of use case that recursive minibuffers would help with. I see that some commands play with enable-recursive-minibuffers but counsel-M-x isn't one of them. Is that an easy fix?
The text was updated successfully, but these errors were encountered:
Bring back the old behavior.
* ivy.el (ivy-recursive-restore): New defun.
(ivy-call): `undwind-protect' to fix#924. Call `ivy-recursive-restore'
for good measure.
Fixes#937
Re #924
The suggestion in README.md to enable recursive minibuffers (via
(setq enable-recursive-minibuffers t)
led me to think that commands like M-x should be usable from within the swiper minibuffer.However, I saw something I didn't expect when I tried this.
C-s
), and navigated to a completion.counsel-M-x
) to callivy-alt-done
(I'd forgotten the hotkey)Instead, what I wanted was for ivy-alt-done to be called in the swiper minibuffer I left.
This is reproducible with a minimal setup (
emacs -Q
, etc.).This seems like exactly the sort of use case that recursive minibuffers would help with. I see that some commands play with
enable-recursive-minibuffers
butcounsel-M-x
isn't one of them. Is that an easy fix?The text was updated successfully, but these errors were encountered: