mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-24 04:50:27 +02:00
two new modes for menu selection: incremental search and interactive (17366)
This commit is contained in:
parent
03105a5d6e
commit
d28f67623f
8 changed files with 502 additions and 47 deletions
|
|
@ -1824,6 +1824,13 @@ To turn on menu completion or menu selection when a certain number of
|
|||
matches is generated em(or) the list of matches does not fit onto the
|
||||
screen, both of `tt(yes=)' and `tt(select=)' can be given twice, once
|
||||
with a number and once with `tt(long)' or `tt(long-list)'.
|
||||
|
||||
Finally, the two special modes of menu selection, namely interactive
|
||||
mode and incremental search can be pre-selected with this style. By
|
||||
including the word `tt(interactive)' in the value, interactive mode
|
||||
will be entered immediately when menu selection is started and the
|
||||
string `tt(search)' does the same for incremental search. To select
|
||||
backward incremental search, include the string `tt(search-backward)'.
|
||||
)
|
||||
kindex(muttrc, completion style)
|
||||
item(tt(muttrc))(
|
||||
|
|
|
|||
|
|
@ -332,6 +332,22 @@ moves the mark to the next match
|
|||
item(tt(reverse-menu-complete))(
|
||||
moves the mark to the previous match
|
||||
)
|
||||
item(tt(viinsert))(
|
||||
this toggles between normal and interactive mode; in interactive mode
|
||||
the keys bound to tt(self-insert) and tt(self-insert-unmeta) insert
|
||||
into the command line as in normal editing mode but without leaving
|
||||
menu selection; after each character completion is tried again and the
|
||||
list changes to contain only the new matches; the completion widgets
|
||||
make the longest unambiguous string be inserted in the command line
|
||||
and tt(undo) and tt(backward-delete-char) go back to the previous set
|
||||
of matches
|
||||
)
|
||||
item(tt(history-incremental-search-forward),
|
||||
tt(history-incremental-search-backward))(
|
||||
this starts incremental searches in the list of completions displayed;
|
||||
in this mode, tt(accept-line) only leaves incremental search, going
|
||||
back to the normal menu selection mode
|
||||
)
|
||||
enditem()
|
||||
|
||||
All movement functions wrap around at the edges; any other zle function not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue