diff options
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/compwid.yo | 15 | ||||
-rw-r--r-- | Doc/Zsh/contrib.yo | 14 |
2 files changed, 29 insertions, 0 deletions
diff --git a/Doc/Zsh/compwid.yo b/Doc/Zsh/compwid.yo index e793085af..88da670b6 100644 --- a/Doc/Zsh/compwid.yo +++ b/Doc/Zsh/compwid.yo @@ -240,6 +240,14 @@ matches generated be ignored and only the TAB be inserted. Finally, it may also be set to tt(all), which makes all matches generated be inserted into the line. ) +vindex(insert_positions, compstate) +item(tt(insert_positions))( +When the completion system inserts an unambiguous string into the +line, there may be multiple places where characters are missing or +where the character inserted differs from at least one match. The +value of this key contains a colon separated list of all these +positions, as indexes into the command line. +) vindex(last_prompt, compstate) item(tt(last_prompt))( If this is set to an non-empty string for every match added, the @@ -397,6 +405,13 @@ common prefix in the tt(unambiguous) key were inserted, relative to the value of that key. The cursor would be placed before the character whose index is given by this key. ) +vindex(unambiguous_positions, compstate) +item(tt(unambiguous_positions))( +This contains all positions where characters in the unambiguous string +are missing or where the character inserted differs from at least one +of the matches. The positions are given as indexes into the string +given by the value of the tt(uanmbiguous) key. +) vindex(vared, compstate) item(tt(vared))( If completion is called while editing a line using the tt(vared) diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index eb5f202da..77abc97a0 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -316,6 +316,20 @@ followed by an appropriate tt(bindkey) command to associate the function with a key sequence. Suggested bindings are described below. startitem() +tindex(cycle-completion-positions) +item(tt(cycle-completion-positions))( +After inserting an unambiguous string into the command line, the new +function based completion system may know about multiple places in +this string where characters are missing or differ from at least one +of the possible matches. It will then place the cursor on the +position it considers to be the most interesting one, i.e. the one +where one can disambiguate between as many matches as possible with as +little typing as possible. + +This widget allows to easily move the cursor to the other interesting +spots. It can be invoked repeatedly to cycle between all positions +reported by the completion system. +) tindex(edit-command-line) item(tt(edit-command-line))( Edit the command line using your visual editor, as in tt(ksh). |