When I use ido-find-file and press TAB I see the found filenames in a half windows size. Instead could it be compact, where can emtpy space removed?

Ex: enter image description here


(ido-mode 1)
(require 'consult)
(require 'vertico)

Please note that I am not able to use icicles due to consult does not properly work when I enable ivy-mode.

1 Answer 1


[UPDATE] The issue is reported to be fixed in Emacs 29 trunk.

I had this question myself and your post had stimulated me to finally research how to do it.

Here's the current solution (or rather a fix, because this behavior of the *Ido Completions* buffer looks like a bug to me) tested on Emacs 28.0.50:

   '(("\\*Ido Completions\\*"
      (display-buffer-reuse-window display-buffer-at-bottom)
      (window-height . fit-window-to-buffer))))

Additionally, try out 'one-column output:

(setq completions-format 'one-column) ; or 'vertical / 'horizontal

Documentation on display-buffer-alist.

P.S. I probably should have also mentioned that typing C-f (after C-x C-f calling ido-find-file) allows to fallback to non-ido find-file with the currently more standard completions buffer behavior. C-h f ido-magic-forward-char lists all C-f initiated "magic actions".

  • Thanks! Smal questions, first TAB shows all column format I believe than on the second TAB the list becomes wider and its heifght decreases. Would it be possible to show in same height if multiple TABs pressed?
    – alper
    Aug 23, 2021 at 20:09
  • Note that *Completions* buffer acts the same way (at least in my setup with fido-mode, tested with M-x prev RET). The end of the documentation C-h f fit-window-to-buffer might be addressing this issue. Though I didn't investigate thoroughly (yet).
    – Y. E.
    Aug 24, 2021 at 12:25
  • Actually, after more research, it looks like a bug in ido again to me. The list of completions gets "re-drawn" on the second TAB hit. There'e no such issue with emacs -Q completions. There's a chance I'll dig deeper (I already did but not enough to find the fix). I'll let you know if I have a solution/fix for that.
    – Y. E.
    Aug 25, 2021 at 7:32
  • Thank you :-) icicles handles it well but I was not able to use it along with consult
    – alper
    Aug 25, 2021 at 10:08
  • FYI, I filed these issues as a bug report several days ago.
    – Y. E.
    Sep 24, 2021 at 10:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.