Variable: ido-work-directory-match-only
ido-work-directory-match-only is a customizable variable defined in
ido.el.gz.
Value
t
Documentation
Non-nil means to skip non-matching directories in the directory history.
When some text is already entered at the ido-find-file prompt, using
M-x ido-prev-work-directory (ido-prev-work-directory) or M-x ido-next-work-directory (ido-next-work-directory) will skip directories
without any matching entries.
Source Code
;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defcustom ido-work-directory-match-only t
"Non-nil means to skip non-matching directories in the directory history.
When some text is already entered at the `ido-find-file' prompt, using
\\[ido-prev-work-directory] or \\[ido-next-work-directory] will skip directories
without any matching entries."
:type 'boolean)