minad / consult

:mag: consult.el - Consulting completing-read
GNU General Public License v3.0
1.12k stars 98 forks source link

consult-buffer does not show default candidate in minibuffer #923

Closed nordlow closed 3 months ago

nordlow commented 3 months ago

M-x consult-buffer should show default candidate in minibuffer like M-x switch-to-buffer does without any user input whatsoever.

The prompt should also say "Switch to buffer: " instead of currently just "Switch to: ".

Also M-x consult-buffer followed by just RET should have the same behavior as switch-to-buffer instead of currently quitting with message "No selection".

minad commented 3 months ago

M-x consult-buffer should show default candidate in minibuffer like M-x switch-to-buffer does without any user input whatsoever.

You mean as part of the prompt? For consult-buffer this is less necessary because of preview.

The prompt should also say "Switch to buffer: " instead of currently just "Switch to: ".

consult-buffer also supports switching to recent files, so "Switch to buffer: " is too narrow.

Also M-x consult-buffer followed by just RET should have the same behavior as switch-to-buffer instead of currently quitting with message "No selection".

Indeed, this was broken due to a recent commit. Fixed in https://github.com/minad/consult/commit/52400343828f96914c2f1169b6c9c6be2e6e0653.

nordlow commented 3 months ago

Thanks!