consult-dir icon indicating copy to clipboard operation
consult-dir copied to clipboard

Using `consult-dir` in minibuffer requires `enable-recursive-minibuffers` non-nil

Open dalanicolai opened this issue 1 year ago • 4 comments

As mentioned in the title, using consult-dir from the minibuffer, requires the variable of enable-recursive-minibuffers set to t. I could not find this being documented. Otherwise, it probably would be nice if consult-dir sets this automatically.

dalanicolai avatar Apr 12 '23 06:04 dalanicolai

@dalanicolai To use consult-dir, the user is not required to set, or even be aware of the variable enable-recursive-minibuffers. consult-dir enables recursive minibuffers if needed, and restores the prior state when exiting.

Does consult-dir not work for you from the minibuffer if you (setq enable-recursive-minibuffers nil)?

karthink avatar Apr 12 '23 15:04 karthink

Indeed, I simply wanted to test the package, but when trying to invoke consult-dir from the minibuffer, a message appeared that I was 'trying to invoke a command from the minibuffer'. After setting enable-recursive-minibuffers to t things worked fine.

dalanicolai avatar Apr 13 '23 18:04 dalanicolai

Indeed, I simply wanted to test the package, but when trying to invoke consult-dir from the minibuffer, a message appeared that I was 'trying to invoke a command from the minibuffer'.

This shouldn't happen, it's a bug with consult-dir. I'm not able to reproduce it with emacs -q + a fresh installation of consult-dir though.

karthink avatar Apr 13 '23 19:04 karthink

@dalanicolai Could you test it again, by first setting enable-recursive-minibuffers to nil? consult-dir automatically sets it to t when invoked from the minibuffer, so this shouldn't be happening.

karthink avatar Jun 01 '23 02:06 karthink