2000-04-17 13:17:10 +02:00
|
|
|
COMMENT(!MOD!zsh/complist
|
|
|
|
Completion listing extensions.
|
|
|
|
!MOD!)
|
1999-06-27 07:33:25 +02:00
|
|
|
cindex(completion, listing)
|
2000-04-17 13:17:10 +02:00
|
|
|
cindex(completion, coloured listings)
|
|
|
|
cindex(completion, scroll listings)
|
|
|
|
The tt(zsh/complist) module offers three extensions to completion listings:
|
|
|
|
the ability to highlight matches in such a list, the ability to
|
|
|
|
scroll through long lists and a different style of menu-completion.
|
|
|
|
|
|
|
|
subsect(Colored completion listings)
|
|
|
|
Whenever one of the parameters tt(ZLS_COLORS) or tt(ZLS_COLOURS) is set
|
|
|
|
and the tt(zsh/complist) module is loaded or linked into the shell,
|
|
|
|
completion lists will be colored. Note, however, that tt(complist) will
|
|
|
|
not automatically be loaded if it is not linked in: on systems with
|
|
|
|
dynamic loading, `tt(zmodload zsh/complist)' is required.
|
|
|
|
|
|
|
|
vindex(ZLS_COLORS)
|
|
|
|
vindex(ZLS_COLOURS)
|
|
|
|
The parameters tt(ZLS_COLORS) and tt(ZLS_COLOURS) describe how matches
|
2000-05-21 20:27:36 +02:00
|
|
|
are highlighted. To turn on highlighting an empty value suffices, in
|
|
|
|
which case all the default values given below will be used. The format of
|
|
|
|
the value of these parameters is the same as used by the GNU version of the
|
1999-06-27 07:33:25 +02:00
|
|
|
tt(ls) command: a colon-separated list of specifications of the form
|
2000-05-21 20:27:36 +02:00
|
|
|
`var(name)=var(value)'. The var(name) may be one of the following strings,
|
|
|
|
most of which specify file types for which the var(value) will be used.
|
|
|
|
The strings and their default values are:
|
1999-06-27 07:33:25 +02:00
|
|
|
|
|
|
|
startitem()
|
|
|
|
item(tt(no 0))(
|
2000-04-17 13:17:10 +02:00
|
|
|
for normal text (i.e. when displaying something other than a matched file)
|
1999-06-27 07:33:25 +02:00
|
|
|
)
|
|
|
|
item(tt(fi 0))(
|
|
|
|
for regular files
|
|
|
|
)
|
|
|
|
item(tt(di 32))(
|
|
|
|
for directories
|
|
|
|
)
|
|
|
|
item(tt(ln 36))(
|
|
|
|
for symbolic links
|
|
|
|
)
|
|
|
|
item(tt(pi 31))(
|
|
|
|
for named pipes (FIFOs)
|
|
|
|
)
|
|
|
|
item(tt(so 33))(
|
|
|
|
for sockets
|
|
|
|
)
|
|
|
|
item(tt(bd 44;37))(
|
|
|
|
for block devices
|
|
|
|
)
|
|
|
|
item(tt(cd 44;37))(
|
|
|
|
for character devices
|
|
|
|
)
|
|
|
|
item(tt(ex 35))(
|
|
|
|
for executable files
|
|
|
|
)
|
|
|
|
item(tt(mi) var(none))(
|
2000-05-21 20:27:36 +02:00
|
|
|
for a non-existent file (default is the value defined for tt(fi))
|
1999-06-27 07:33:25 +02:00
|
|
|
)
|
|
|
|
item(tt(lc \e[))(
|
|
|
|
for the left code (see below)
|
|
|
|
)
|
|
|
|
item(tt(rc m))(
|
|
|
|
for the right code
|
|
|
|
)
|
2000-04-17 13:17:10 +02:00
|
|
|
item(tt(tc) var(0))(
|
|
|
|
for the character indicating the file type printed after filenames if
|
|
|
|
the tt(LIST_TYPES) option is set
|
|
|
|
)
|
|
|
|
item(tt(sp) var(0))(
|
|
|
|
for the spaces printed after matches to align the next column
|
|
|
|
)
|
1999-06-27 07:33:25 +02:00
|
|
|
item(tt(ec) var(none))(
|
|
|
|
for the end code
|
|
|
|
)
|
|
|
|
enditem()
|
|
|
|
|
|
|
|
Apart from these strings, the var(name) may also be an asterisk
|
|
|
|
(`tt(*)') followed by any string. The var(value) given for such a
|
|
|
|
string will be used for all files whose name ends with the string.
|
2000-04-17 13:17:10 +02:00
|
|
|
The var(name) may also be a equal sign (`tt(=)') followed by a
|
2000-05-21 20:27:36 +02:00
|
|
|
pattern. The var(value) given for this pattern will be used for all
|
|
|
|
matches (not just filenames) whose display string are matched by
|
|
|
|
the pattern. Definitions for both of these take precedence over the
|
2000-04-17 13:17:10 +02:00
|
|
|
values defined for file types and the form with the leading asterisk
|
|
|
|
takes precedence over the form with the leading equal sign.
|
|
|
|
|
2000-05-21 20:27:36 +02:00
|
|
|
The last form also allows different parts of the displayed
|
|
|
|
strings to be colored differently. For this, the pattern has to use the
|
2000-04-17 13:17:10 +02:00
|
|
|
`tt((#b))' globbing flag and pairs of parentheses surrounding the
|
2000-05-21 20:27:36 +02:00
|
|
|
parts of the strings that are to be colored differently. In this case
|
2000-04-17 13:17:10 +02:00
|
|
|
the var(value) may consist of more than one color code separated by
|
2000-05-21 20:27:36 +02:00
|
|
|
equal signs. The first code will be used for all parts for which no
|
2000-04-17 13:17:10 +02:00
|
|
|
explicit code is specified and the following codes will be used for
|
2000-05-21 20:27:36 +02:00
|
|
|
the parts matched by the sub-patterns in parentheses. For example,
|
2000-04-17 13:17:10 +02:00
|
|
|
the specification `tt(=(#b)(?)*(?)=0=3=7)' will be used for all
|
|
|
|
matches which are at least two characters long and will make the use
|
|
|
|
the code `tt(3)' for the first character, `tt(7)' for the last
|
|
|
|
character and `tt(0)' for the rest.
|
|
|
|
|
|
|
|
All three forms of var(name) may be preceded by a pattern in
|
2000-05-21 20:27:36 +02:00
|
|
|
parentheses. If this is given, the var(value) will be used
|
2000-04-17 13:17:10 +02:00
|
|
|
only for matches in groups whose names are matched by the pattern
|
2000-05-21 20:27:36 +02:00
|
|
|
given in the parentheses. For example, `tt((g*)m*=43)' highlights all
|
2000-04-17 13:17:10 +02:00
|
|
|
matches beginning with `tt(m)' in groups whose names begin with
|
2000-05-21 20:27:36 +02:00
|
|
|
`tt(g)' using the color code `tt(43)'. In case of the `tt(lc)',
|
2000-04-17 13:17:10 +02:00
|
|
|
`tt(rc)', and `tt(ec)' codes, the group pattern is ignored.
|
|
|
|
|
|
|
|
Note also that all patterns are tried in the order in which they
|
|
|
|
appear in the parameter value until the first one matches which is
|
|
|
|
then used.
|
1999-06-27 07:33:25 +02:00
|
|
|
|
|
|
|
When printing a match, the code prints the value of tt(lc), the value
|
|
|
|
for the file-type or the last matching specification with a `tt(*)',
|
|
|
|
the value of tt(rc), the string to display for the match itself, and
|
|
|
|
then the value of tt(ec) if that is defined or the values of tt(lc),
|
|
|
|
tt(no), and tt(rc) if tt(ec) is not defined.
|
|
|
|
|
|
|
|
The default values are ISO 6429 (ANSI) compliant and can be used on
|
2000-05-21 20:27:36 +02:00
|
|
|
vt100 compatible terminals such as tt(xterm)s. On monochrome terminals
|
|
|
|
the default values will have no visible effect.
|
1999-06-27 07:33:25 +02:00
|
|
|
|
2000-05-21 20:27:36 +02:00
|
|
|
If the completion system based around shell functions is used, these
|
2000-04-17 13:17:10 +02:00
|
|
|
parameters should not be set directly because the system controls them
|
2000-05-21 20:27:36 +02:00
|
|
|
itself. Instead, the tt(list-colors) style should be used (see
|
2000-04-17 13:17:10 +02:00
|
|
|
ifzman(the section `Completion System Configuration' in zmanref(zshcompsys))\
|
|
|
|
ifnzman(noderef(Completion System Configuration))\
|
|
|
|
).
|
|
|
|
|
|
|
|
subsect(Scrolling in completion listings)
|
2000-05-21 20:27:36 +02:00
|
|
|
To enable scrolling through a completion list, the tt(LISTPROMPT)
|
|
|
|
parameter must be set. Its value will be used as the prompt; if it
|
2000-04-27 10:21:10 +02:00
|
|
|
is the empty string, a default prompt will be used. The value may
|
2000-05-21 20:27:36 +02:00
|
|
|
contain escapes of the form `tt(%x)'. It supports the escapes
|
2000-04-27 10:21:10 +02:00
|
|
|
`tt(%B)', `tt(%b)', `tt(%S)', `tt(%s)', `tt(%U)', `tt(%u)' and
|
2000-05-21 20:27:36 +02:00
|
|
|
`tt(%{...%})' used also in shell prompts as well as three pairs of
|
|
|
|
additional sequences: a `tt(%l)' or `tt(%L)' is replaced by the number
|
2000-04-27 10:21:10 +02:00
|
|
|
of the last line shown and the total number of lines in the form
|
2000-05-21 20:27:36 +02:00
|
|
|
`var(number)tt(/)var(total)'; a `tt(%m)' or `tt(%M)' is replaced with
|
|
|
|
the number of the last match shown and the total number of matches; and
|
2000-04-27 10:21:10 +02:00
|
|
|
`tt(%p)' or `tt(%P)' is replaced with `tt(Top)', `tt(Bottom)' or the
|
|
|
|
position of the first line shown in percent of the total number of
|
2000-05-21 20:27:36 +02:00
|
|
|
lines, respectively. In each of these cases the form with the uppercase
|
2000-04-27 10:21:10 +02:00
|
|
|
letter will be replaced with a string of fixed width, padded to the
|
2000-05-21 20:27:36 +02:00
|
|
|
right with spaces, while the lowercase form will not be padded.
|
2000-04-27 10:21:10 +02:00
|
|
|
|
2000-05-21 20:27:36 +02:00
|
|
|
If the option att(LISTPROMPT) is set, the completion code will not ask if
|
|
|
|
the list should be shown. Instead it immediately starts displaying the
|
|
|
|
list, stopping after the first screenful, showing the prompt at the bottom,
|
|
|
|
waiting for a keypress after temporarily switching to the tt(listscroll)
|
|
|
|
keymap. Some of the zle functions have a special meaning while scrolling
|
|
|
|
lists:
|
2000-04-17 13:17:10 +02:00
|
|
|
|
|
|
|
startitem()
|
2000-04-18 09:36:55 +02:00
|
|
|
item(tt(send-break))(
|
|
|
|
stops listing discarding the key pressed
|
2000-04-17 13:17:10 +02:00
|
|
|
)
|
2000-04-18 09:36:55 +02:00
|
|
|
xitem(tt(accept-line), tt(down-history), tt(down-line-or-history))
|
|
|
|
item(tt(down-line-or-search), tt(vi-down-line-or-history))(
|
|
|
|
scrolls forward one line
|
2000-04-17 13:17:10 +02:00
|
|
|
)
|
2000-04-18 10:50:12 +02:00
|
|
|
xitem(tt(complete-word), tt(menu-complete), tt(expand-or-complete))
|
2000-04-18 09:36:55 +02:00
|
|
|
item(tt(expand-or-complete-prefix), tt(menu-complete-or-expand))(
|
|
|
|
scrolls forward one screenful
|
2000-04-17 13:17:10 +02:00
|
|
|
)
|
|
|
|
enditem()
|
|
|
|
|
|
|
|
Every other character stops listing and immediately processes the key
|
2000-05-21 20:27:36 +02:00
|
|
|
as usual. Any key that is not bound in the tt(listscroll) keymap or
|
2000-04-18 09:36:55 +02:00
|
|
|
that is bound to tt(undefined-key) is looked up in the keymap
|
|
|
|
currently selected.
|
2000-04-17 13:17:10 +02:00
|
|
|
|
2000-04-18 09:36:55 +02:00
|
|
|
As for the tt(ZLS_COLORS) and tt(ZLS_COLOURS) parameters,
|
|
|
|
tt(LISTPROMPT) should not be set directly when using the shell
|
2000-05-21 20:27:36 +02:00
|
|
|
function based completion system. Instead, the tt(list-prompt) style
|
2000-04-18 09:36:55 +02:00
|
|
|
should be used.
|
|
|
|
|
1999-06-27 07:33:25 +02:00
|
|
|
subsect(Menu selection)
|
2000-04-17 13:17:10 +02:00
|
|
|
cindex(completion, selecting by cursor)
|
2000-04-27 10:21:10 +02:00
|
|
|
vindex(MENUSELECT)
|
2000-04-17 13:17:10 +02:00
|
|
|
tindex(menu-select)
|
|
|
|
The tt(zsh/complist) module also offers an alternative style of selecting
|
|
|
|
matches from a list, called menu-selection, which can be used if the
|
|
|
|
shell is set up to return to the last prompt after showing a
|
|
|
|
completion list (see the tt(ALWAYS_LAST_PROMPT) option in
|
|
|
|
ifzman(zmanref(zshoptions))\
|
|
|
|
ifnzman(noderef(Options))\
|
2000-05-21 20:27:36 +02:00
|
|
|
). It can be invoked directly by
|
1999-06-27 07:33:25 +02:00
|
|
|
the widget tt(menu-select) defined by the module. Alternatively,
|
2000-04-27 10:21:10 +02:00
|
|
|
the parameter tt(MENUSELECT) can be set to an integer, which give the
|
2000-04-17 13:17:10 +02:00
|
|
|
minimum number of matches that must be present before menu selection is
|
1999-06-27 07:33:25 +02:00
|
|
|
automatically turned on. This second method requires that menu completion
|
|
|
|
be started, either directly from a widget such as tt(menu-complete), or due
|
|
|
|
to one of the options tt(MENU_COMPLETE) or tt(AUTO_MENU) being set. If
|
2000-04-27 10:21:10 +02:00
|
|
|
tt(MENUSELECT) is set, but is 0, 1 or empty, menu selection will always be
|
2000-04-17 13:17:10 +02:00
|
|
|
started during an ambiguous menu completion.
|
1999-06-27 07:33:25 +02:00
|
|
|
|
2000-05-21 20:27:36 +02:00
|
|
|
When using the completion system based on shell functions, the
|
2000-04-27 10:21:10 +02:00
|
|
|
tt(MENUSELECT) parameter should not be used (like the tt(ZLS_COLORS)
|
2000-05-21 20:27:36 +02:00
|
|
|
and tt(ZLS_COLOURS) parameters described above). Instead, the tt(menu)
|
|
|
|
style should be used with the tt(select=)var(...) keyword.
|
2000-04-17 13:17:10 +02:00
|
|
|
|
|
|
|
After menu-selection is started, the matches will be listed. If there
|
|
|
|
are more matches than fit on the screen, only the first screenful is
|
2000-05-21 20:27:36 +02:00
|
|
|
shown. The
|
1999-06-27 07:33:25 +02:00
|
|
|
matches to insert into the command line can be selected from this
|
2000-05-21 20:27:36 +02:00
|
|
|
list. In the list one match is highlighted using the value for tt(ma)
|
|
|
|
from the tt(ZLS_COLORS) or tt(ZLS_COLOURS) parameter. The default
|
2000-04-17 13:17:10 +02:00
|
|
|
value for this is `tt(7)' which forces the selected match to be
|
2000-05-21 20:27:36 +02:00
|
|
|
highlighted using standout mode on a vt100-compatible terminal. If
|
2000-04-17 13:17:10 +02:00
|
|
|
neither tt(ZLS_COLORS) nor tt(ZLS_COLOURS) is set, the same terminal
|
|
|
|
control sequence as for the `tt(%S)' escape in prompts is used.
|
|
|
|
|
|
|
|
If there are more matches than fit on the screen and the parameter
|
2000-05-21 20:27:36 +02:00
|
|
|
tt(MENUPROMPT) is set, its value will be shown below the matches. It
|
2000-05-11 02:01:03 +02:00
|
|
|
supports the same escape sequences as tt(LISTPROMPT), but the number
|
2000-04-27 10:21:10 +02:00
|
|
|
of the match or line shown will be that of the one where the mark is
|
2000-05-21 20:27:36 +02:00
|
|
|
placed. If its value is the empty string, a default prompt will be
|
2000-04-27 10:21:10 +02:00
|
|
|
used.
|
2000-04-17 13:17:10 +02:00
|
|
|
|
2000-04-27 10:21:10 +02:00
|
|
|
The tt(MENUSCROLL) parameter can be used to specify how the list is
|
2000-05-21 20:27:36 +02:00
|
|
|
scrolled. If the parameter is unset, this is done line by line, if it
|
2000-04-17 13:17:10 +02:00
|
|
|
is set to `tt(0)' (zero), the list will scrolled half the number of
|
2000-05-21 20:27:36 +02:00
|
|
|
lines of the screen. If the value is positive, it gives the number of
|
2000-04-18 09:36:55 +02:00
|
|
|
lines to scroll and if it is negative, the list will be scrolled
|
2000-04-17 13:17:10 +02:00
|
|
|
the number of lines of the screen minus the (absolute) value.
|
|
|
|
|
2000-04-18 09:36:55 +02:00
|
|
|
As for the tt(ZLS_COLORS), tt(ZLS_COLOURS) and tt(LISTPROMPT)
|
2000-04-27 10:21:10 +02:00
|
|
|
parameters, neither tt(MENUPROMPT) nor tt(MENUSCROLL) should be
|
2000-04-18 09:36:55 +02:00
|
|
|
set directly when using the shell function based completion
|
2000-05-21 20:27:36 +02:00
|
|
|
system. Instead, the tt(select-prompt) and tt(select-scroll) styles
|
2000-04-18 09:36:55 +02:00
|
|
|
should be used.
|
|
|
|
|
2000-04-17 13:17:10 +02:00
|
|
|
The completion code sometimes decides not to show all of the matches
|
2000-05-21 20:27:36 +02:00
|
|
|
in the list. These hidden matches are either matches for which the
|
2000-04-17 13:17:10 +02:00
|
|
|
completion function which added them explicitly requested that they
|
|
|
|
not appear in the list (using the tt(-n) option of the tt(compadd)
|
|
|
|
builtin command) or they are matches which duplicate a string already
|
|
|
|
in the list (because they differ only in things like prefixes or
|
2000-05-21 20:27:36 +02:00
|
|
|
suffixes that are not displayed). In the list used for menu-selection,
|
2000-04-17 13:17:10 +02:00
|
|
|
however, even these matches are shown so that it is possible to select
|
2000-05-21 20:27:36 +02:00
|
|
|
them. To highlight such matches the tt(hi) and tt(du) capabilities in
|
2000-04-17 13:17:10 +02:00
|
|
|
the tt(ZLS_COLORS) and tt(ZLS_COLOURS) parameters are supported for
|
|
|
|
hidden matches of the first and second kind, respectively.
|
1999-06-27 07:33:25 +02:00
|
|
|
|
|
|
|
Selecting matches is done by moving the mark around using the zle movement
|
2000-05-21 20:27:36 +02:00
|
|
|
functions. When not all matches can be shown on the screen at the same
|
2000-04-17 13:17:10 +02:00
|
|
|
time, the list will scroll up and down when crossing the top or
|
2000-05-21 20:27:36 +02:00
|
|
|
bottom line. The following zle functions have special meaning during
|
2000-04-17 13:17:10 +02:00
|
|
|
menu selection:
|
|
|
|
|
|
|
|
startitem()
|
|
|
|
item(tt(accept-line))(
|
|
|
|
accepts the current match and leaves menu selection
|
|
|
|
)
|
|
|
|
item(tt(send-break))(
|
2000-05-11 10:40:09 +02:00
|
|
|
leaves menu selection and restores the previous contents of the
|
|
|
|
command line
|
2000-04-17 13:17:10 +02:00
|
|
|
)
|
|
|
|
item(tt(redisplay), tt(clear-screen))(
|
|
|
|
execute their normal function without leaving menu selection
|
|
|
|
)
|
|
|
|
item(tt(accept-and-hold), tt(accept-and-menu-complete))(
|
|
|
|
accept the currently inserted match and continue selection allowing to
|
|
|
|
select the next match to insert into the line
|
|
|
|
)
|
|
|
|
item(tt(accept-and-infer-next-history))(
|
|
|
|
accepts the current match and then tries completion with
|
|
|
|
menu-selection again; in the case of files this allows one to select
|
|
|
|
a directory and immediately attempt to complete files in it
|
|
|
|
)
|
|
|
|
item(tt(undo))(
|
|
|
|
removes matches inserted during the menu selection by one of the three
|
|
|
|
functions before
|
|
|
|
)
|
|
|
|
xitem(tt(down-history), tt(down-line-or-history))
|
|
|
|
item(tt(vi-down-line-or-history), tt(down-line-or-search))(
|
|
|
|
moves the mark one line down
|
|
|
|
)
|
|
|
|
xitem(tt(up-history), tt(up-line-or-history))
|
|
|
|
item(tt(vi-up-line-or-history), tt(up-line-or-search))(
|
|
|
|
moves the mark one line up
|
|
|
|
)
|
|
|
|
item(tt(forward-char), tt(vi-forward-char))(
|
|
|
|
moves the mark one column right
|
|
|
|
)
|
|
|
|
item(tt(backward-char), tt(vi-backward-char))(
|
|
|
|
moves the mark one column left
|
|
|
|
)
|
|
|
|
xitem(tt(forward-word), tt(vi-forward-word))
|
|
|
|
item(tt(vi-forward-word-end), tt(emacs-forward-word))(
|
|
|
|
moves the mark one screenful down
|
|
|
|
)
|
|
|
|
item(tt(backward-word), tt(vi-backward-word), tt(emacs-backward-word))(
|
|
|
|
moves the mark one screenful up
|
|
|
|
)
|
|
|
|
item(tt(vi-forward-blank-word), tt(vi-forward-blank-word-end))(
|
|
|
|
moves the mark to the first line of the next group of matches
|
|
|
|
)
|
|
|
|
item(tt(vi-backward-blank-word))(
|
|
|
|
moves the mark to the last line of the previous group of matches
|
|
|
|
)
|
|
|
|
item(tt(beginning-of-history))(
|
|
|
|
moves the mark to the first line
|
|
|
|
)
|
|
|
|
item(tt(end-of-history))(
|
|
|
|
moves the mark to the last line
|
|
|
|
)
|
|
|
|
xitem(tt(beginning-of-buffer-or-history), tt(beginning-of-line))
|
|
|
|
item(tt(beginning-of-line-hist), tt(vi-beginning-of-line))(
|
|
|
|
moves the mark to the leftmost column
|
|
|
|
)
|
|
|
|
xitem(tt(end-of-buffer-or-history), tt(end-of-line))
|
|
|
|
item(tt(end-of-line-hist), tt(vi-end-of-line))(
|
|
|
|
moves the mark to the rightmost column
|
|
|
|
)
|
|
|
|
xitem(tt(complete-word), tt(menu-complete), tt(expand-or-complete))
|
|
|
|
item(tt(expand-or-complete-prefix), tt(menu-expand-or-complete))(
|
|
|
|
moves the mark to the next match
|
|
|
|
)
|
2000-05-11 02:01:03 +02:00
|
|
|
item(tt(reverse-menu-complete))(
|
2000-04-17 13:17:10 +02:00
|
|
|
moves the mark to the previous match
|
|
|
|
)
|
|
|
|
enditem()
|
|
|
|
|
2000-05-21 20:27:36 +02:00
|
|
|
All movement functions wrap around at the edges; any other zle function not
|
|
|
|
listed leaves menu-selection and executes that function. It is possible to
|
|
|
|
make widgets in the above list do the same by using the form of the widget
|
|
|
|
with a `tt(.)' in front. For example, the widget `tt(.accept-line)' has
|
|
|
|
the effect of leaving menu selection and accepting the entire command line.
|
1999-06-27 07:33:25 +02:00
|
|
|
|
2000-05-21 20:27:36 +02:00
|
|
|
During this selection the widget uses the keymap tt(menuselect). Any
|
1999-06-27 07:33:25 +02:00
|
|
|
key that is not defined in this keymap or that is bound to
|
2000-05-21 20:27:36 +02:00
|
|
|
tt(undefined-key) is looked up in the keymap currently selected. This
|
1999-06-27 07:33:25 +02:00
|
|
|
is used to ensure that the most important keys used during selection
|
2000-05-21 20:27:36 +02:00
|
|
|
(namely the cursor keys, return, and TAB) have sensible defaults. However,
|
1999-06-27 07:33:25 +02:00
|
|
|
keys in the the tt(menuselect) keymap can be modified directly using the
|
|
|
|
tt(bindkey) builtin command (see
|
|
|
|
ifzman(zmanref(zshmodules))\
|
2000-04-17 13:17:10 +02:00
|
|
|
ifnzman(noderef(The zsh/zle Module))\
|
|
|
|
). For example, to make the return key leave menu-selection and
|
|
|
|
continue with normal menu-completion one can call
|
|
|
|
|
|
|
|
indent(tt(bindkey -M menuselect '^M' send-break))
|
|
|
|
|
|
|
|
after loading the tt(zsh/complist) module.
|