2013-07-24 22:32:48 +00:00
|
|
|
\input texinfo @c -*-texinfo-*-
|
2014-06-10 02:20:31 +00:00
|
|
|
@setfilename ../../info/ido.info
|
2013-07-24 22:32:48 +00:00
|
|
|
@settitle Interactive Do
|
Fix single-quoting style in PDF manuals
The PDF versions of the GNU manuals used curved single quotes to
represent grave accent and apostrophe, which made it a pain to cut
and paste code examples from them. Fix the PDF versions to use
grave accent and apostrophe for Lisp source code, keystrokes, etc.
This change does not affect the info files, nor does it affect
ordinary uses of curved single quotes in PDF.
* doc/emacs/docstyle.texi: New file, which specifies treatment for
grave accent and apostrophe, as well as the document encoding.
* doc/emacs/emacs-xtra.texi, doc/emacs/emacs.texi:
* doc/lispintro/emacs-lisp-intro.texi:
* doc/lispref/back.texi, doc/lispref/book-spine.texi:
* doc/lispref/elisp.texi, doc/lispref/lay-flat.texi:
* doc/misc/ada-mode.texi, doc/misc/auth.texi:
* doc/misc/autotype.texi, doc/misc/bovine.texi, doc/misc/calc.texi:
* doc/misc/cc-mode.texi, doc/misc/cl.texi, doc/misc/dbus.texi:
* doc/misc/dired-x.texi, doc/misc/ebrowse.texi, doc/misc/ede.texi:
* doc/misc/ediff.texi, doc/misc/edt.texi, doc/misc/efaq-w32.texi:
* doc/misc/efaq.texi, doc/misc/eieio.texi, doc/misc/emacs-gnutls.texi:
* doc/misc/emacs-mime.texi, doc/misc/epa.texi, doc/misc/erc.texi:
* doc/misc/ert.texi, doc/misc/eshell.texi, doc/misc/eudc.texi:
* doc/misc/eww.texi, doc/misc/flymake.texi, doc/misc/forms.texi:
* doc/misc/gnus-coding.texi, doc/misc/gnus-faq.texi:
* doc/misc/gnus.texi, doc/misc/htmlfontify.texi:
* doc/misc/idlwave.texi, doc/misc/ido.texi, doc/misc/info.texi:
* doc/misc/mairix-el.texi, doc/misc/message.texi, doc/misc/mh-e.texi:
* doc/misc/newsticker.texi, doc/misc/nxml-mode.texi:
* doc/misc/octave-mode.texi, doc/misc/org.texi, doc/misc/pcl-cvs.texi:
* doc/misc/pgg.texi, doc/misc/rcirc.texi, doc/misc/reftex.texi:
* doc/misc/remember.texi, doc/misc/sasl.texi, doc/misc/sc.texi:
* doc/misc/semantic.texi, doc/misc/ses.texi, doc/misc/sieve.texi:
* doc/misc/smtpmail.texi, doc/misc/speedbar.texi:
* doc/misc/srecode.texi, doc/misc/todo-mode.texi, doc/misc/tramp.texi:
* doc/misc/url.texi, doc/misc/vhdl-mode.texi, doc/misc/vip.texi:
* doc/misc/viper.texi, doc/misc/widget.texi, doc/misc/wisent.texi:
* doc/misc/woman.texi:
Use it instead of '@documentencoding UTF-8', to lessen the need for
global changes like this in the future.
* doc/emacs/Makefile.in (EMACS_XTRA):
* doc/lispintro/Makefile.in (srcs):
* doc/lispref/Makefile.in (srcs):
Add dependency on docstyle.texi.
* doc/misc/Makefile.in (style): New macro.
(${buildinfodir}/%.info, %.dvi, %.pdf, %.html)
(${buildinfodir}/ccmode.info, ${buildinfodir}/efaq%.info, gnus_deps):
Use it.
2015-05-01 19:05:53 +00:00
|
|
|
@include docstyle.texi
|
2013-07-24 22:32:48 +00:00
|
|
|
@include emacsver.texi
|
|
|
|
|
|
|
|
@copying
|
|
|
|
This file documents the Ido package for GNU Emacs.
|
|
|
|
|
2021-01-01 09:13:56 +00:00
|
|
|
Copyright @copyright{} 2013--2021 Free Software Foundation, Inc.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@quotation
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
|
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
|
|
|
any later version published by the Free Software Foundation; with no
|
2014-05-07 17:34:53 +00:00
|
|
|
Invariant Sections, with the Front-Cover Texts being ``A GNU Manual'',
|
2013-07-24 22:32:48 +00:00
|
|
|
and with the Back-Cover Texts as in (a) below. A copy of the license
|
|
|
|
is included in the section entitled ``GNU Free Documentation License''.
|
|
|
|
|
|
|
|
(a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
|
|
|
|
modify this GNU manual.''
|
|
|
|
@end quotation
|
|
|
|
@end copying
|
|
|
|
|
2013-12-12 03:37:38 +00:00
|
|
|
@dircategory Emacs misc features
|
2013-07-24 22:32:48 +00:00
|
|
|
@direntry
|
2013-12-12 03:37:38 +00:00
|
|
|
* Ido: (ido). Interactively do things with buffers and files.
|
2013-07-24 22:32:48 +00:00
|
|
|
@end direntry
|
|
|
|
|
|
|
|
@finalout
|
|
|
|
|
|
|
|
@titlepage
|
|
|
|
@sp 6
|
|
|
|
@center @titlefont{Interactive Do}
|
|
|
|
@sp 4
|
|
|
|
@center For GNU Emacs
|
|
|
|
@sp 1
|
|
|
|
@center as distributed with Emacs @value{EMACSVER}
|
|
|
|
@sp 5
|
|
|
|
@center Kim F. Storm
|
|
|
|
@center storm@@cua.dk
|
|
|
|
@page
|
|
|
|
@vskip 0pt plus 1filll
|
|
|
|
@insertcopying
|
|
|
|
@end titlepage
|
|
|
|
|
|
|
|
@contents
|
|
|
|
|
|
|
|
@ifnottex
|
|
|
|
@node Top
|
|
|
|
@top Interactive Do
|
|
|
|
|
|
|
|
@insertcopying
|
|
|
|
@end ifnottex
|
|
|
|
|
|
|
|
@menu
|
2013-08-08 12:31:38 +00:00
|
|
|
* Overview:: Basics, activation.
|
|
|
|
* Matching:: Interactivity, matching, scrolling.
|
|
|
|
* Highlighting:: Highlighting of matching items.
|
|
|
|
* Hidden Buffers and Files:: Hidden buffers, files, and directories.
|
|
|
|
* Customization:: Change the Ido functionality.
|
|
|
|
* Misc:: Various other features.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
Appendices
|
2013-08-08 12:31:38 +00:00
|
|
|
* GNU Free Documentation License:: The license for this documentation.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
Indexes
|
2019-08-03 17:19:17 +00:00
|
|
|
* Function Index:: An entry for each documented function.
|
2013-08-08 12:31:38 +00:00
|
|
|
* Variable Index:: An entry for each documented variable.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@detailmenu
|
|
|
|
--- The Detailed Node Listing ---
|
|
|
|
|
|
|
|
Overview
|
|
|
|
|
2013-08-08 12:31:38 +00:00
|
|
|
* Activation:: How to use this package.
|
|
|
|
* Working Directories:: Where files have most recently been opened.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
Matching
|
|
|
|
|
2013-08-08 12:31:38 +00:00
|
|
|
* Interactive Substring Matching:: Interactivity, matching, scrolling.
|
|
|
|
* Prefix Matching:: Standard completion.
|
|
|
|
* Flexible Matching:: More flexible matching.
|
|
|
|
* Regexp Matching:: Matching using regular expression.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
Customization
|
|
|
|
|
2013-08-08 12:31:38 +00:00
|
|
|
* Changing List Order:: Changing the list of files.
|
|
|
|
* Find File At Point:: Make Ido guess the context.
|
|
|
|
* Ignoring:: Ignorance is bliss.
|
|
|
|
* Misc Customization:: Miscellaneous customization for Ido.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
Miscellaneous
|
|
|
|
|
2013-08-08 12:31:38 +00:00
|
|
|
* All Matching:: Seeing all the matching buffers or files.
|
|
|
|
* Replacement:: Replacement for @code{read-buffer} and @code{read-file-name}.
|
|
|
|
* Other Packages:: Don't want to depend on @code{ido-everywhere}?
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@end detailmenu
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node Overview
|
|
|
|
@chapter Overview
|
|
|
|
@cindex overview
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
This document describes a set of features that can interactively do
|
|
|
|
things with buffers and files. All the features are described here
|
|
|
|
in detail.
|
|
|
|
|
2019-08-29 23:36:50 +00:00
|
|
|
The @dfn{Ido} package lets you switch between buffers and visit
|
2013-07-24 22:32:48 +00:00
|
|
|
files and directories with a minimum of keystrokes. It is a superset
|
|
|
|
of Iswitchb, the interactive buffer switching package by Stephen
|
|
|
|
Eglen.
|
|
|
|
|
|
|
|
@cindex author of Ido
|
|
|
|
@cindex Iswitchb
|
|
|
|
This package was originally written by Kim F. Storm, based on the
|
|
|
|
@file{iswitchb.el} package by Stephen Eglen.
|
|
|
|
|
|
|
|
@menu
|
2013-08-08 12:31:38 +00:00
|
|
|
* Activation:: How to use this package.
|
|
|
|
* Working Directories:: Where files have most recently been opened.
|
2013-07-24 22:32:48 +00:00
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node Activation
|
|
|
|
@section Activation
|
|
|
|
@cindex activation
|
|
|
|
@cindex installation
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
This package is distributed with Emacs, so there is no need to install
|
|
|
|
any additional files in order to start using it. To activate, use
|
|
|
|
@kbd{M-x ido-mode}.
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
You may wish to add the following expressions to your initialization
|
|
|
|
file (@pxref{Init File,,The Emacs Initialization File, emacs, GNU
|
|
|
|
Emacs Manual}), if you make frequent use of features from this
|
|
|
|
package.
|
|
|
|
|
|
|
|
@example
|
|
|
|
(require 'ido)
|
|
|
|
(ido-mode t)
|
|
|
|
@end example
|
|
|
|
|
2013-08-08 12:31:38 +00:00
|
|
|
@node Working Directories
|
|
|
|
@section Working Directories
|
|
|
|
@cindex working directories
|
|
|
|
|
|
|
|
@vindex ido-work-directory-list
|
|
|
|
@noindent
|
|
|
|
@dfn{Working directories} are directories where files have most
|
|
|
|
recently been opened. The current directory is inserted at the front
|
|
|
|
of this @code{ido-work-directory-list} whenever a file is opened with
|
|
|
|
@code{ido-find-file} and other file-related functions.
|
|
|
|
|
|
|
|
@c @cindex merge
|
|
|
|
@c or maybe a new node for ``merge''
|
|
|
|
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-merge-work-directories
|
2013-08-08 12:31:38 +00:00
|
|
|
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-prev-work-directory
|
2013-08-08 12:31:38 +00:00
|
|
|
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-next-work-directory
|
2013-08-08 12:31:38 +00:00
|
|
|
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-forget-work-directory
|
2013-08-08 12:31:38 +00:00
|
|
|
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @defvar ido-use-merged-list
|
|
|
|
@c @defvar ido-try-merged-list
|
|
|
|
@c @defvar ido-pre-merge-state
|
2013-08-08 12:31:38 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-max-work-directory-list
|
2013-08-08 12:31:38 +00:00
|
|
|
This user option specifies maximum number of working directories to
|
|
|
|
record.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-08-08 12:31:38 +00:00
|
|
|
|
|
|
|
@c see (info "(elisp) File Name Completion")
|
2019-08-03 17:19:17 +00:00
|
|
|
@findex ido-reread-directory
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-max-dir-file-cache
|
2013-08-08 12:31:38 +00:00
|
|
|
This user option specifies maximum number of working directories to be
|
|
|
|
cached. This is the size of the cache of
|
|
|
|
@code{file-name-all-completions} results. Each cache entry is time
|
|
|
|
stamped with the modification time of the directory. Some systems,
|
|
|
|
like MS-Windows, have unreliable directory modification times, so you
|
|
|
|
may choose to disable caching on such systems, or explicitly refresh
|
|
|
|
the cache contents using the command @code{ido-reread-directory}
|
|
|
|
(usually @kbd{C-l}) in the minibuffer.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@node Matching
|
|
|
|
@chapter Matching
|
|
|
|
@cindex matching
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
This section describes features of this package that have to
|
|
|
|
do with various kinds of @emph{matching}: among buffers, files, and directories.
|
|
|
|
|
|
|
|
@menu
|
2013-08-08 12:31:38 +00:00
|
|
|
* Interactive Substring Matching:: Interactivity, matching, scrolling.
|
|
|
|
* Prefix Matching:: Standard completion.
|
|
|
|
* Flexible Matching:: More flexible matching.
|
|
|
|
* Regexp Matching:: Matching using regular expression.
|
2013-07-24 22:32:48 +00:00
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node Interactive Substring Matching
|
|
|
|
@section Interactive Substring Matching
|
|
|
|
@cindex interactive substring matching
|
|
|
|
@cindex substring, interactive matching
|
|
|
|
@cindex matching, using substring
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
As you type in a substring, the list of buffers or files currently
|
2019-08-29 23:36:50 +00:00
|
|
|
matching the substring is displayed as you type. The list is
|
2013-07-24 22:32:48 +00:00
|
|
|
ordered so that the most recent buffers or files visited come at
|
|
|
|
the start of the list.
|
|
|
|
|
|
|
|
The buffer or file at the start of the list will be the one visited
|
|
|
|
when you press @key{RET}. By typing more of the substring, the list
|
|
|
|
is narrowed down so that gradually the buffer or file you want will be
|
|
|
|
at the top of the list. Alternatively, you can use @kbd{C-s} and
|
|
|
|
@kbd{C-r} (or the right and left arrow keys) to rotate buffer or file
|
|
|
|
names in the list until the one you want is at the top of the list.
|
|
|
|
|
|
|
|
Completion is also available so that you can see what is common to
|
|
|
|
all of the matching buffers or files as you type.
|
|
|
|
|
|
|
|
For example, if there are two buffers called @file{123456} and
|
|
|
|
@file{123}, with @file{123456} the most recent, when using
|
|
|
|
@code{ido-switch-buffer}, you first of all get presented with the list
|
|
|
|
of all the buffers
|
|
|
|
|
|
|
|
@example
|
|
|
|
Buffer: @{123456 | 123@}
|
|
|
|
@end example
|
|
|
|
|
|
|
|
If you then press @kbd{2}:
|
|
|
|
|
|
|
|
@example
|
|
|
|
Buffer: 2[3]@{123456 | 123@}
|
|
|
|
@end example
|
|
|
|
|
2019-08-29 23:36:50 +00:00
|
|
|
The items listed in @{...@} are the matching buffers, most recent
|
|
|
|
first (buffers visible in the current frame are put at the end of the
|
|
|
|
list by default). At any time you can select the item at the head of
|
|
|
|
the list by pressing @key{RET}. You can also put the first element at
|
|
|
|
the end of the list by pressing @kbd{C-s} or @key{RIGHT}, or bring
|
|
|
|
the last element to the head of the list by pressing @kbd{C-r} or
|
|
|
|
@key{LEFT}.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2019-08-03 17:19:17 +00:00
|
|
|
@findex ido-complete
|
2013-07-24 22:32:48 +00:00
|
|
|
The item in [...] indicates what can be added to your input by
|
|
|
|
pressing @key{TAB} (@code{ido-complete}). In this case, you will get
|
|
|
|
"3" added to your input.
|
|
|
|
|
|
|
|
So, press @key{TAB}:
|
|
|
|
|
|
|
|
@example
|
|
|
|
Buffer: 23@{123456 | 123@}
|
|
|
|
@end example
|
|
|
|
|
|
|
|
At this point, you still have two matching buffers. If you want the
|
|
|
|
first buffer in the list, you can simply press @key{RET}. If you want
|
|
|
|
the second in the list, you can press @kbd{C-s} to move it to the top
|
2013-09-11 14:06:22 +00:00
|
|
|
of the list and then press @key{RET} to select it.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
However, if you type @kbd{4}, you'll only have one match left:
|
|
|
|
|
|
|
|
@example
|
|
|
|
Buffer: 234[123456]
|
|
|
|
@end example
|
|
|
|
|
|
|
|
Since there is only one matching buffer left, it is given in [] and it
|
|
|
|
is shown in the @code{ido-only-match} face (ForestGreen). You can now
|
|
|
|
press @key{TAB} or @key{RET} to go to that buffer.
|
|
|
|
|
2019-08-03 17:19:17 +00:00
|
|
|
@findex ido-select-text
|
2013-07-24 22:32:48 +00:00
|
|
|
If you want to create a new buffer named @file{234}, you can press
|
|
|
|
@kbd{C-j} (@code{ido-select-text}) instead of @key{TAB} or @key{RET}.
|
|
|
|
|
|
|
|
If instead, you type @kbd{a}:
|
|
|
|
|
|
|
|
@example
|
|
|
|
Buffer: 234a [No match]
|
|
|
|
@end example
|
|
|
|
|
|
|
|
There are no matching buffers. If you press @key{RET} or @key{TAB},
|
|
|
|
you can be prompted to create a new buffer called @file{234a}.
|
|
|
|
|
2019-08-29 23:36:50 +00:00
|
|
|
Of course, where this function really comes in handy is when you can
|
2013-07-24 22:32:48 +00:00
|
|
|
specify the buffer using only a few keystrokes. In the above example,
|
|
|
|
the quickest way to get to the @file{123456} file would be just to
|
|
|
|
type @kbd{4} and then @key{RET} (assuming there isn't any newer buffer
|
|
|
|
with @kbd{4} in its name).
|
|
|
|
|
2019-08-03 17:19:17 +00:00
|
|
|
@findex ido-find-file
|
2013-07-24 22:32:48 +00:00
|
|
|
Likewise, if you use @kbd{C-x C-f} (@code{ido-find-file}), the list of
|
|
|
|
files and directories in the current directory is provided in the same
|
|
|
|
fashion as the buffers above. The files and directories are normally
|
|
|
|
sorted in alphabetical order, but the most recently visited directory
|
|
|
|
is placed first to speed up navigating to directories that you have
|
|
|
|
visited recently.
|
|
|
|
|
|
|
|
In addition to scrolling through the list using @kbd{<right>} and
|
|
|
|
@kbd{<left>}, you can use @kbd{<up>} and @kbd{<down>} to quickly
|
|
|
|
scroll the list to the next or previous subdirectory.
|
|
|
|
|
2019-08-29 23:36:50 +00:00
|
|
|
To go down into a subdirectory and continue the file selection on
|
2013-07-24 22:32:48 +00:00
|
|
|
the files in that directory, simply move the directory to the head
|
|
|
|
of the list and hit @key{RET}.
|
|
|
|
|
|
|
|
To go up to the parent directory, delete any partial file name already
|
2015-03-17 23:55:02 +00:00
|
|
|
specified (e.g., using @key{DEL}) and hit @key{DEL}.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-delete-backward-updir
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@cindex root directory
|
|
|
|
@cindex home directory
|
|
|
|
To go to the root directory (on the current drive), enter two slashes.
|
|
|
|
On MS-DOS or Windows, to select the root of another drive, enter
|
|
|
|
@samp{X:/} where @samp{X} is the drive letter. To go to the home
|
|
|
|
directory, enter @samp{~/}. To enter Dired for this directory, use
|
2013-07-27 22:14:07 +00:00
|
|
|
@kbd{C-d}.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@c TODO: a new node for ftp hosts
|
|
|
|
@cindex ftp hosts
|
|
|
|
You can also visit files on other hosts using the ange-ftp
|
|
|
|
notations @samp{/host:} and @samp{/user@@host:}.
|
2013-08-10 04:58:31 +00:00
|
|
|
@c @defopt ido-record-ftp-work-directories
|
|
|
|
@c @defopt ido-merge-ftp-work-directories
|
|
|
|
@c @defopt ido-cache-ftp-work-directory-time
|
|
|
|
@c @defopt ido-slow-ftp-hosts
|
|
|
|
@c @defopt ido-slow-ftp-host-regexps
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
You can type @kbd{M-p} and @kbd{M-n} to change to previous/next
|
|
|
|
directories from the history, @kbd{M-s} to search for a file matching
|
|
|
|
your input, and @kbd{M-k} to remove the current directory from the history.
|
|
|
|
|
|
|
|
If for some reason you cannot specify the proper file using
|
|
|
|
@code{ido-find-file}, you can press @kbd{C-f} to enter the normal
|
|
|
|
@code{find-file}. You can also press @kbd{C-b} to drop into
|
|
|
|
@code{ido-switch-buffer}.
|
|
|
|
|
|
|
|
@c @kindex C-x b
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-switch-buffer
|
2013-07-24 22:32:48 +00:00
|
|
|
@c This command switch to another buffer interactively.
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @end deffn
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@c @kindex C-x C-f
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-find-file
|
2013-07-24 22:32:48 +00:00
|
|
|
@c Edit file with name obtained via minibuffer.
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @end deffn
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@c @kindex C-x d
|
|
|
|
@c @findex ido-dired
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-dired
|
2013-07-24 22:32:48 +00:00
|
|
|
@c Call Dired the Ido way.
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @end deffn
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@node Prefix Matching
|
|
|
|
@section Prefix Matching
|
|
|
|
@cindex prefix matching
|
|
|
|
@cindex matching, using prefix
|
|
|
|
@cindex standard way of completion
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
The standard way of completion with *nix shells and Emacs is to insert
|
|
|
|
a @dfn{prefix} and then hitting @key{TAB} (or another completion key).
|
2019-08-29 23:36:50 +00:00
|
|
|
Because this behavior has become second nature to a lot of Emacs
|
|
|
|
users, Ido offers, in addition to the default substring matching method
|
|
|
|
(see above), also the prefix matching method. The kind of matching is
|
2013-07-24 22:32:48 +00:00
|
|
|
the only difference to the description of the substring matching
|
|
|
|
above.
|
|
|
|
|
2019-08-03 17:19:17 +00:00
|
|
|
@findex ido-toggle-prefix
|
2013-09-11 14:06:22 +00:00
|
|
|
@cindex toggle prefix matching
|
2013-07-24 22:32:48 +00:00
|
|
|
You can toggle prefix matching with @kbd{C-p}
|
|
|
|
(@code{ido-toggle-prefix}).
|
|
|
|
|
|
|
|
For example, if you have two buffers @file{123456} and @file{123} then
|
|
|
|
hitting @kbd{2} does not match because @kbd{2} is not a prefix in any
|
|
|
|
of the buffer names.
|
|
|
|
|
|
|
|
@node Flexible Matching
|
|
|
|
@section Flexible Matching
|
|
|
|
@cindex flexible matching
|
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-enable-flex-matching
|
2013-07-24 22:32:48 +00:00
|
|
|
If non-@code{nil}, Ido will do flexible string matching. Flexible
|
|
|
|
matching means that if the entered string does not match any item, any
|
|
|
|
item containing the entered characters in the given sequence will
|
|
|
|
match.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@noindent
|
|
|
|
If @code{ido-enable-flex-matching} is non-@code{nil}, Ido will do a
|
|
|
|
more flexible matching (unless regexp matching is active) to find
|
|
|
|
possible matches among the available buffer or file names if no
|
|
|
|
matches are found using the normal prefix or substring matching.
|
|
|
|
|
|
|
|
The flexible matching implies that any item which simply contains all
|
|
|
|
of the entered characters in the specified sequence will match.
|
|
|
|
|
|
|
|
For example, if you have four files @file{alpha}, @file{beta},
|
|
|
|
@file{gamma}, and @file{delta}, entering @samp{aa} will match
|
|
|
|
@file{alpha} and @file{gamma}, while @samp{ea} matches @file{beta} and
|
|
|
|
@file{delta}. If prefix matching is also active, @samp{aa} only
|
|
|
|
matches @file{alpha}, while @samp{ea} does not match any files.
|
|
|
|
|
|
|
|
@node Regexp Matching
|
|
|
|
@section Regular Expression Matching
|
|
|
|
@cindex regexp matching
|
|
|
|
@cindex matching, using regular expression
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
There is limited provision for regexp matching within Ido, enabled
|
|
|
|
through @code{ido-enable-regexp} (toggle with @kbd{C-t}). This allows
|
|
|
|
you to type @samp{[ch]$} for example and see all file names ending in
|
|
|
|
@samp{c} or @samp{h}.
|
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-enable-regexp
|
2019-08-03 17:19:17 +00:00
|
|
|
@findex ido-toggle-regexp
|
2013-07-24 22:32:48 +00:00
|
|
|
If the value of this user option is non-@code{nil}, Ido will do regexp
|
|
|
|
matching. The value of this user option can be toggled within
|
|
|
|
ido-mode using @code{ido-toggle-regexp}.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2019-08-29 23:36:50 +00:00
|
|
|
@strong{Please note:} Ido-style completion is inhibited when you
|
2013-07-24 22:32:48 +00:00
|
|
|
enable regexp matching.
|
|
|
|
|
|
|
|
@node Highlighting
|
|
|
|
@chapter Highlighting
|
|
|
|
@cindex highlighting
|
|
|
|
|
|
|
|
@noindent
|
2019-08-03 17:19:17 +00:00
|
|
|
@vindex ido-use-faces
|
2013-07-24 22:32:48 +00:00
|
|
|
The highlighting of matching items is controlled via
|
|
|
|
@code{ido-use-faces}. The faces used are @code{ido-first-match},
|
|
|
|
@code{ido-only-match} and @code{ido-subdir}.
|
|
|
|
|
2019-08-29 23:36:50 +00:00
|
|
|
Coloring of the matching items was suggested by Carsten Dominik.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@node Hidden Buffers and Files
|
|
|
|
@chapter Hidden Buffers and Files
|
|
|
|
@cindex hidden buffers and files
|
|
|
|
|
2019-08-29 23:36:50 +00:00
|
|
|
Normally, Ido does not include hidden buffers (whose names start with
|
|
|
|
a space) and hidden files and directories (whose names start with
|
|
|
|
@file{.}) in the list of possible completions. However, if the
|
2013-07-24 22:32:48 +00:00
|
|
|
substring you enter does not match any of the visible buffers or
|
|
|
|
files, Ido will automatically look for completions among the hidden
|
|
|
|
buffers or files.
|
|
|
|
|
2019-08-03 17:19:17 +00:00
|
|
|
@findex ido-toggle-ignore
|
2019-08-29 23:36:50 +00:00
|
|
|
You can toggle the display of hidden buffers and files with @kbd{C-a}
|
2013-07-24 22:32:48 +00:00
|
|
|
(@code{ido-toggle-ignore}).
|
|
|
|
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-toggle-ignore
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@node Customization
|
|
|
|
@chapter Customization
|
|
|
|
@cindex customization
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
You can customize the @code{ido} group to change Ido functionality:
|
|
|
|
|
|
|
|
@example
|
2018-02-26 12:53:37 +00:00
|
|
|
M-x customize-group @key{RET} ido @key{RET}
|
2013-07-24 22:32:48 +00:00
|
|
|
@end example
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
or customize a certain variable:
|
|
|
|
|
|
|
|
@example
|
2018-02-26 12:53:37 +00:00
|
|
|
M-x customize-variable @key{RET} ido-xxxxx @key{RET}
|
2013-07-24 22:32:48 +00:00
|
|
|
@end example
|
|
|
|
|
2019-08-03 17:19:17 +00:00
|
|
|
@vindex ido-setup-hook
|
2013-07-24 22:32:48 +00:00
|
|
|
To modify the keybindings, use the @code{ido-setup-hook}. For example:
|
|
|
|
|
|
|
|
@example
|
|
|
|
(add-hook 'ido-setup-hook 'ido-my-keys)
|
|
|
|
|
|
|
|
(defun ido-my-keys ()
|
|
|
|
"Add my keybindings for Ido."
|
|
|
|
(define-key ido-completion-map " " 'ido-next-match))
|
|
|
|
@end example
|
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@c @defopt ido-setup-hook
|
2013-08-08 23:56:25 +00:00
|
|
|
@c a new node for Ido hooks?
|
|
|
|
|
2013-07-24 22:32:48 +00:00
|
|
|
@menu
|
|
|
|
* Changing List Order:: Changing the list of files.
|
|
|
|
* Find File At Point:: Make Ido guess the context.
|
|
|
|
* Ignoring:: Ignorance is bliss.
|
|
|
|
* Misc Customization:: Miscellaneous customization for Ido.
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node Changing List Order
|
|
|
|
@section Changing List Order
|
|
|
|
@cindex changing order of the list
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
By default, the list of current files is most recent first,
|
|
|
|
oldest last, with the exception that the files visible in the
|
|
|
|
current frame are put at the end of the list. A hook exists to
|
|
|
|
allow other functions to order the list. For example, if you add:
|
|
|
|
|
|
|
|
@example
|
|
|
|
(add-hook 'ido-make-buffer-list-hook 'ido-summary-buffers-to-end)
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
then all files matching "Summary" are moved to the end of the list.
|
|
|
|
(I find this handy for keeping the INBOX Summary and so on out of the
|
|
|
|
way.) It also moves files matching @samp{output\*$} to the end of the
|
|
|
|
list (these are created by AUCTeX when compiling.) Other functions
|
|
|
|
could be made available which alter the list of matching files (either
|
|
|
|
deleting or rearranging elements.)
|
|
|
|
|
|
|
|
@node Find File At Point
|
|
|
|
@section Find File At Point
|
|
|
|
@cindex find file at point
|
|
|
|
@cindex ffap
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
Find File At Point, also known generally as ``ffap'', is an
|
2019-08-29 23:36:50 +00:00
|
|
|
intelligent system for opening files and URLs.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
The following expression will make Ido guess the context:
|
|
|
|
|
|
|
|
@example
|
|
|
|
(setq ido-use-filename-at-point 'guess)
|
|
|
|
@end example
|
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@c @defopt ido-use-filename-at-point
|
2013-07-24 22:32:48 +00:00
|
|
|
@c If the value of this user option is non-@code{nil}, ...
|
2013-08-10 04:58:31 +00:00
|
|
|
@c @end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
You can disable URL ffap support by toggling
|
|
|
|
@code{ido-use-url-at-point}.
|
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-use-url-at-point
|
2013-07-24 22:32:48 +00:00
|
|
|
If the value of this user option is non-@code{nil}, Ido will look for
|
|
|
|
a URL at point. If found, call @code{find-file-at-point} to visit it.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@node Ignoring
|
|
|
|
@section Ignoring Buffers and Files
|
|
|
|
@cindex ignoring
|
|
|
|
@cindex regexp, ignore buffers and files
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
Ido is capable of ignoring buffers, directories, files and extensions
|
2019-08-29 23:36:50 +00:00
|
|
|
using regular expressions.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-ignore-buffers
|
2013-07-24 22:32:48 +00:00
|
|
|
This variable takes a list of regular expressions for buffers to
|
|
|
|
ignore in @code{ido-switch-buffer}.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-ignore-directories
|
2013-07-24 22:32:48 +00:00
|
|
|
This variable takes a list of regular expressions for (sub)directories
|
|
|
|
names to ignore in @code{ido-dired} and @code{ido-find-file}.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-ignore-files
|
2013-07-24 22:32:48 +00:00
|
|
|
This variable takes a list of regular expressions for files to ignore
|
|
|
|
in @code{ido-find-file}.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-ignore-unc-host-regexps
|
2013-07-24 22:32:48 +00:00
|
|
|
This variable takes a list of regular expressions matching UNC hosts
|
|
|
|
to ignore. The letter case will be ignored if
|
|
|
|
@code{ido-downcase-unc-hosts} is non-@code{nil}.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-08 12:31:38 +00:00
|
|
|
@c FIXME: Where to add this variable? This node or ``working directory''?
|
2013-08-10 04:58:31 +00:00
|
|
|
@c @defopt ido-work-directory-list-ignore-regexps
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
To make Ido use @code{completion-ignored-extensions} you need to
|
|
|
|
enable it:
|
|
|
|
|
|
|
|
@example
|
|
|
|
(setq ido-ignore-extensions t)
|
|
|
|
@end example
|
|
|
|
|
2019-08-03 17:19:17 +00:00
|
|
|
@vindex completion-ignored-extensions
|
2013-07-24 22:32:48 +00:00
|
|
|
Now you can customize @code{completion-ignored-extensions} as well.
|
|
|
|
Go ahead and add all the useless object files, backup files, shared
|
2014-01-01 23:13:59 +00:00
|
|
|
library files and other computing flotsam you don't want Ido to show.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2020-01-17 05:55:14 +00:00
|
|
|
@strong{Please note:} Ido will still complete the ignored elements
|
2013-07-24 22:32:48 +00:00
|
|
|
if it would otherwise not show any other matches. So if you type out
|
|
|
|
the name of an ignored file, Ido will still let you open it just fine.
|
|
|
|
|
|
|
|
@node Misc Customization
|
|
|
|
@section Miscellaneous Customization
|
|
|
|
@cindex miscellaneous customization for Ido
|
|
|
|
|
2013-08-08 13:53:30 +00:00
|
|
|
@c Variables described in this sections may be moved to new nodes in
|
|
|
|
@c the future.
|
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-mode
|
2013-07-24 22:32:48 +00:00
|
|
|
This user option determines for which functional group (buffer and
|
|
|
|
files) Ido behavior should be enabled.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-case-fold
|
2013-07-24 22:32:48 +00:00
|
|
|
If the value of this user option is non-@code{nil}, searching of
|
|
|
|
buffer and file names should ignore case.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-show-dot-for-dired
|
2013-08-08 12:52:25 +00:00
|
|
|
If the value of this user option is non-@code{nil}, always put
|
2013-07-24 22:32:48 +00:00
|
|
|
@samp{.} as the first item in file name lists. This allows the
|
|
|
|
current directory to be opened immediately with Dired
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-enable-dot-prefix
|
2013-07-24 22:32:48 +00:00
|
|
|
If the value of this user option is non-@code{nil}, Ido will match
|
|
|
|
leading dot as prefix. I.e., hidden files and buffers will match only
|
|
|
|
if you type a dot as first char (even if @code{ido-enable-prefix} is
|
|
|
|
@code{nil}).
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-confirm-unique-completion
|
2013-08-08 13:53:30 +00:00
|
|
|
If the value of this user option is non-@code{nil}, even a unique
|
2013-08-08 12:52:25 +00:00
|
|
|
completion must be confirmed. This means that @code{ido-complete}
|
|
|
|
(@key{TAB}) must always be followed by @code{ido-exit-minibuffer}
|
|
|
|
(@key{RET}) even when there is only one unique completion.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-08-08 12:52:25 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-cannot-complete-command
|
2013-08-08 13:53:30 +00:00
|
|
|
When @code{ido-complete} can't complete any more, it will run the
|
|
|
|
command specified by this user option. The most useful values are
|
|
|
|
@code{ido-completion-help}, which pops up a window with completion
|
|
|
|
alternatives, or @code{ido-next-match} or @code{ido-prev-match}, which
|
|
|
|
cycle the buffer list.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-08-08 13:53:30 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-max-file-prompt-width
|
2013-08-08 13:53:30 +00:00
|
|
|
This user option specifies the upper limit of the prompt string. If
|
|
|
|
its value is an integer, it specifies the number of characters of the
|
|
|
|
string. If its value is a floating point number, it specifies a
|
|
|
|
fraction of the frame width.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-08-08 13:53:30 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-max-window-height
|
2013-08-08 14:03:56 +00:00
|
|
|
If the value of this user option is non-@code{nil}, its value will
|
2013-08-08 13:53:30 +00:00
|
|
|
override the variable @code{max-mini-window-height}, which is the
|
|
|
|
maximum height for resizing mini-windows (the minibuffer and the echo
|
|
|
|
area). If it's a floating point number, it specifies a fraction of
|
|
|
|
the mini-window frame's height. If it's an integer, it specifies the
|
|
|
|
number of lines.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-08-08 13:53:30 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-record-commands
|
2013-08-08 14:03:56 +00:00
|
|
|
If the value of this user option is non-@code{nil}, Ido will record
|
|
|
|
commands in the variable @code{command-history}. Note that non-Ido
|
|
|
|
equivalent is recorded.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-08-08 14:03:56 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-all-frames
|
2013-08-08 23:56:25 +00:00
|
|
|
This user option will be passed to @code{walk-windows} as its
|
|
|
|
@var{all-frames} argument when Ido is finding buffers. @xref{Cyclic
|
|
|
|
Window Ordering, , Cyclic Ordering of Windows, elisp, GNU Emacs Lisp
|
|
|
|
Reference Manual}.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-08-08 23:56:25 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@defopt ido-minibuffer-setup-hook
|
2013-08-08 23:56:25 +00:00
|
|
|
This hook variable contains Ido-specific customization of minibuffer
|
|
|
|
setup. It is run during minibuffer setup if Ido is active, and is
|
|
|
|
intended for use in customizing ido for interoperation with other
|
|
|
|
packages.
|
2013-08-10 04:58:31 +00:00
|
|
|
@end defopt
|
2013-08-08 23:56:25 +00:00
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@c @defopt ido-enable-tramp-completion
|
2013-08-08 23:56:25 +00:00
|
|
|
@c cross-reference to tramp.texi
|
|
|
|
|
|
|
|
@c @cindex UNC host names, completion
|
2013-08-10 04:58:31 +00:00
|
|
|
@c @defopt ido-unc-hosts
|
|
|
|
@c @defopt ido-downcase-unc-hosts
|
|
|
|
@c @defopt ido-cache-unc-host-shares-time
|
|
|
|
|
|
|
|
@c @defopt ido-enable-last-directory-history
|
|
|
|
@c @defopt ido-max-work-file-list
|
|
|
|
@c @defopt ido-work-directory-match-only
|
|
|
|
@c @defopt ido-auto-merge-work-directories-length
|
|
|
|
@c @defopt ido-auto-merge-delay-time
|
|
|
|
@c @defopt ido-auto-merge-inhibit-characters-regexp
|
|
|
|
@c @defopt ido-merged-indicator
|
|
|
|
@c @defopt ido-max-directory-size
|
|
|
|
@c @defopt ido-rotate-file-list-default
|
|
|
|
@c @defopt ido-enter-matching-directory
|
|
|
|
@c @defopt ido-create-new-buffer
|
|
|
|
@c @defopt ido-separator
|
|
|
|
@c @defopt ido-decorations
|
|
|
|
@c @defopt ido-use-virtual-buffers
|
|
|
|
@c @defopt ido-use-faces
|
|
|
|
@c @defopt ido-make-file-list-hook
|
|
|
|
@c @defopt ido-make-dir-list-hook
|
|
|
|
@c @defopt ido-make-buffer-list-hook
|
|
|
|
@c @defopt ido-rewrite-file-prompt-functions
|
|
|
|
@c @defopt ido-completion-buffer
|
|
|
|
@c @defopt ido-completion-buffer-all-completions
|
|
|
|
@c @defopt ido-save-directory-list-file
|
|
|
|
@c @defopt ido-read-file-name-as-directory-commands
|
|
|
|
@c @defopt ido-read-file-name-non-ido
|
|
|
|
@c @defopt ido-before-fallback-functions
|
|
|
|
@c @defopt ido-buffer-disable-smart-matches
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@node Misc
|
|
|
|
@chapter Miscellaneous
|
|
|
|
@cindex miscellaneous
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
After @kbd{C-x b} (@code{ido-switch-buffer}), the buffer at the head
|
|
|
|
of the list can be killed by pressing @kbd{C-k}. If the buffer needs
|
2015-12-12 14:26:29 +00:00
|
|
|
saving, you will be queried before the buffer is killed. @kbd{C-S-b}
|
2019-08-29 23:36:50 +00:00
|
|
|
buries the buffer at the end of the list.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
Likewise, after @kbd{C-x C-f}, you can delete (i.e., physically
|
|
|
|
remove) the file at the head of the list with @kbd{C-k}. You will
|
|
|
|
always be asked for confirmation before deleting the file.
|
|
|
|
|
|
|
|
If you enter @kbd{C-x b} to switch to a buffer visiting a given file,
|
|
|
|
and you find that the file you are after is not in any buffer, you can
|
2019-08-29 23:36:50 +00:00
|
|
|
press @kbd{C-f} to immediately drop into @code{ido-find-file}. You
|
|
|
|
can switch back to buffer selection with @kbd{C-b}.
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-magic-forward-char
|
|
|
|
@c @deffn Command ido-magic-backward-char
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
You can also use Ido in your Emacs Lisp programs:
|
|
|
|
|
|
|
|
@example
|
|
|
|
(setq my-pkgs (list "CEDET" "Gnus" "Rcirc" "Tramp" "Org" "all-of-them"))
|
|
|
|
(ido-completing-read "What's your favorite package? " my-pkgs)
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* All Matching:: Seeing all the matching buffers or files.
|
|
|
|
* Replacement:: Replacement for @code{read-buffer} and @code{read-file-name}.
|
|
|
|
* Other Packages:: Don't want to depend on @code{ido-everywhere}?
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node All Matching
|
|
|
|
@section All Matching
|
|
|
|
@cindex all matching
|
|
|
|
@cindex seeing all the matching buffers or files
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
If you have many matching files, they may not all fit onto one line of
|
|
|
|
the minibuffer. Normally, the minibuffer window will grow to show you
|
|
|
|
more of the matching files (depending on the value of the variables
|
|
|
|
@code{resize-mini-windows} and @code{max-mini-window-height}). If you
|
|
|
|
want Ido to behave differently from the default minibuffer resizing
|
|
|
|
behavior, set the variable @code{ido-max-window-height}.
|
|
|
|
|
|
|
|
Also, to improve the responsiveness of Ido, the maximum number of
|
2019-08-29 23:36:50 +00:00
|
|
|
matching items is limited to 12, but you can increase or remove this
|
2013-07-24 22:32:48 +00:00
|
|
|
limit via the @code{ido-max-prospects} user option.
|
|
|
|
|
2013-08-10 04:58:31 +00:00
|
|
|
@c @defopt ido-max-prospects
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
To see a full list of all matching buffers in a separate buffer, hit
|
|
|
|
@kbd{?} or press @key{TAB} when there are no further completions to
|
|
|
|
the substring. Repeated @key{TAB} presses will scroll you through
|
|
|
|
this separate buffer.
|
|
|
|
|
|
|
|
@node Replacement
|
|
|
|
@section Replacement
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
@code{ido-read-buffer} and @code{ido-read-file-name} have been written
|
2019-08-29 23:36:50 +00:00
|
|
|
to be drop-in replacements for the normal buffer and file name reading
|
2013-07-24 22:32:48 +00:00
|
|
|
functions @code{read-buffer} and @code{read-file-name}.
|
|
|
|
|
|
|
|
To use ido for all buffer and file selections in Emacs, customize the
|
|
|
|
variable @code{ido-everywhere}.
|
|
|
|
|
2013-08-08 12:52:25 +00:00
|
|
|
@c @deffn Command ido-everywhere
|
2013-08-10 04:58:31 +00:00
|
|
|
@c @defopt ido-everywhere
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@node Other Packages
|
|
|
|
@section Other Packages
|
|
|
|
@cindex other packages
|
|
|
|
@cindex used by other packages
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
If you don't want to rely on the @code{ido-everywhere} functionality,
|
|
|
|
@code{ido-read-buffer}, @code{ido-read-file-name}, and
|
|
|
|
@code{ido-read-directory-name} can be used by other packages to read a
|
|
|
|
buffer name, a file name, or a directory name in the @emph{Ido} way.
|
|
|
|
|
2013-07-27 22:14:07 +00:00
|
|
|
@c @node Cheatsheet
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@c * History and Acknowledgments:: How Ido came into being
|
|
|
|
@c @node History and Acknowledgments
|
|
|
|
@c @appendix History and Acknowledgments
|
|
|
|
|
|
|
|
@node GNU Free Documentation License
|
|
|
|
@appendix GNU Free Documentation License
|
|
|
|
@include doclicense.texi
|
|
|
|
|
2019-08-03 17:19:17 +00:00
|
|
|
@node Function Index
|
|
|
|
@unnumbered Function Index
|
2013-07-24 22:32:48 +00:00
|
|
|
|
2019-08-03 17:19:17 +00:00
|
|
|
@printindex fn
|
2013-07-24 22:32:48 +00:00
|
|
|
|
|
|
|
@node Variable Index
|
|
|
|
@unnumbered Variable Index
|
|
|
|
|
|
|
|
@printindex vr
|
|
|
|
|
|
|
|
@bye
|