diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-15 17:35:20 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-15 17:35:20 +0000 |
commit | 8bc41ba869dbbd3c6bc2c8f2338c740311074f23 (patch) | |
tree | d595aeb0a5e399d4cb6a7dfd3818c395e9118ec0 /Completion/Core/_sort_tags | |
parent | e401df24821d873eba579d2961a0886881b0acf6 (diff) | |
download | zsh-8bc41ba869dbbd3c6bc2c8f2338c740311074f23.tar.gz zsh-8bc41ba869dbbd3c6bc2c8f2338c740311074f23.tar.xz zsh-8bc41ba869dbbd3c6bc2c8f2338c740311074f23.zip |
manual/9058
Diffstat (limited to 'Completion/Core/_sort_tags')
-rw-r--r-- | Completion/Core/_sort_tags | 59 |
1 files changed, 24 insertions, 35 deletions
diff --git a/Completion/Core/_sort_tags b/Completion/Core/_sort_tags index 20897823a..6f07eec1c 100644 --- a/Completion/Core/_sort_tags +++ b/Completion/Core/_sort_tags @@ -1,39 +1,28 @@ #autoload -local stags tag +comptry arguments values +comptry options -if zstyle -a ":completion${curcontext}" sort-tags stags; then +case "$curcontext" in +# Some silly examples commented out: +# +# *::*p[bgpn]m:*) # change the order for file-completion +# comptry globbed-files directories +# comptry all-files +# ;; +# *::dvips::-o*) # automatic context set by _arguments +# comptry all-files +# return +# ;; +# *::kill:*) +# comptry processes +# return # this return ensures that we use only processes +# ;; +*) + comptry globbed-files + comptry directories + comptry all-files + ;; +esac - for tag in $stags; do - [[ $tag != '' ]] && comptry ${=tag} - done - -else - - comptry arguments values - comptry options - - case "$curcontext" in - # Some silly examples commented out: - # - # *::*p[bgpn]m:*) # change the order for file-completion - # comptry globbed-files directories - # comptry all-files - # ;; - # *::dvips::-o*) # automatic context set by _arguments - # comptry all-files - # return - # ;; - # *::kill:*) - # comptry processes - # return # this return ensures that we use only processes - # ;; - *) - comptry globbed-files - comptry directories - comptry all-files - ;; - esac - - comptry "$@" -fi +comptry "$@" |