diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-07-26 14:55:03 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-07-28 15:49:14 +0000 |
commit | f183ed66c85f26670c5e148e952a6cb3f9a73cfd (patch) | |
tree | 53deb8299e733cb678df328de4f263b681d12bcb /Doc/Zsh | |
parent | a6f2755448158234183ef28ed9667c27a25098d7 (diff) | |
download | zsh-f183ed66c85f26670c5e148e952a6cb3f9a73cfd.tar.gz zsh-f183ed66c85f26670c5e148e952a6cb3f9a73cfd.tar.xz zsh-f183ed66c85f26670c5e148e952a6cb3f9a73cfd.zip |
41467: Correct completion of 'tmux new <TAB>'.
Reference: window_pane_spawn() in tmux 2.5. Also, document _cmdstring and _precommand.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/compsys.yo | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 47b07e85e..36afd7305 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -3014,6 +3014,22 @@ tt(-n), tt(-F), tt(-X) are passed to tt(compadd). See tt(_description) for a description of var(tag) and var(descr). ) +findex(_cmdambivalent) +item(tt(_cmdambivalent))( +Completes the remaining positional arguments as an external command. +The external command and its arguments are completed as separate arguments +(in a manner appropriate for completing tt(/usr/bin/env)) +if there are two or more remaining positional arguments on the command line, +and as a quoted command string (in the manner of tt(system+LPAR()...+RPAR())) otherwise. +See also tt(_cmdstring) and tt(_precommand). + +This function takes no arguments. +) +findex(_cmdstring) +item(tt(_cmdstring))( +Completes an external command as a single argument, as for +tt(system+LPAR()...+RPAR()). +) findex(_complete) item(tt(_complete))( This completer generates all possible completions in a context-sensitive @@ -3214,6 +3230,11 @@ tt(old-menu), see ifzman(the section `Completion System Configuration' above)\ ifnzman(noderef(Completion System Configuration)). ) +findex(_precommand) +item(tt(_precommand))( +Complete an external command in word-separated arguments, as for +tt(exec) and tt(/usr/bin/env). +) findex(_prefix) item(tt(_prefix))( This completer can be used to try completion with the suffix (everything |