mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
39706: _tilde_files: Offer named directories. Document.
This commit is contained in:
parent
4eef3e6f0e
commit
71dd0ab62e
3 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2016-10-24 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 39706: Completion/Unix/Type/_tilde_files, Doc/Zsh/compsys.yo:
|
||||
_tilde_files: Offer named directories. Document.
|
||||
|
||||
* 39708: Completion/Unix/Type/_email_addresses,
|
||||
Doc/Zsh/compsys.yo: Document _email_addresses.
|
||||
|
||||
|
|
|
@ -30,7 +30,8 @@ case "$PREFIX" in
|
|||
;;
|
||||
\~*)
|
||||
compset -P '?'
|
||||
_users "$@"
|
||||
local -a expl=( "$@" )
|
||||
_alternative -O expl users:user:_users named-directories:'named directory':'compadd -k nameddirs'
|
||||
;;
|
||||
*)
|
||||
_files "$@"
|
||||
|
|
|
@ -5019,6 +5019,12 @@ allows tt(_tags) to use a more
|
|||
specific context without having to change and reset the
|
||||
tt(curcontext) parameter (which has the same effect).
|
||||
)
|
||||
findex(_tilde_files)
|
||||
item(tt(_tilde_files))(
|
||||
Like tt(_files), but resolve leading tildes according to the rules of
|
||||
filename expansion, so the suggested completions don't start with
|
||||
a `tt(~)' even if the filename on the command-line does.
|
||||
)
|
||||
findex(_values)
|
||||
item(tt(_values) [ tt(-O) var(name) ] [ tt(-s) var(sep) ] [ tt(-S) var(sep) ] [ tt(-wC) ] var(desc) var(spec) ...)(
|
||||
This is used to complete arbitrary keywords (values) and their arguments,
|
||||
|
|
Loading…
Reference in a new issue