diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2001-12-12 11:29:34 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2001-12-12 11:29:34 +0000 |
commit | aed1bad64acc50aaa4c34495957dd7b9c218b38d (patch) | |
tree | d1ff58017e4fd7af709343805581d6e2c7c2deef /Completion/Unix/Command | |
parent | 5cf4508f4260768a6e0a764e127046e79f9ce068 (diff) | |
download | zsh-aed1bad64acc50aaa4c34495957dd7b9c218b38d.tar.gz zsh-aed1bad64acc50aaa4c34495957dd7b9c218b38d.tar.xz zsh-aed1bad64acc50aaa4c34495957dd7b9c218b38d.zip |
allow tag-order to select order of files and urls (16330)
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_links | 8 | ||||
-rw-r--r-- | Completion/Unix/Command/_lynx | 2 | ||||
-rw-r--r-- | Completion/Unix/Command/_w3m | 2 |
3 files changed, 5 insertions, 7 deletions
diff --git a/Completion/Unix/Command/_links b/Completion/Unix/Command/_links index 1eb7e4d21..ce8512fc1 100644 --- a/Completion/Unix/Command/_links +++ b/Completion/Unix/Command/_links @@ -24,8 +24,6 @@ _arguments -C \ '-help' \ ':url:->html' && return 0 -case "$state" in -html) - _files -g '*.html' || _urls - ;; -esac +if [[ "$state" = html ]]; then + _alternative 'files:file:_files "*.html"' 'urls:url:_urls' +fi diff --git a/Completion/Unix/Command/_lynx b/Completion/Unix/Command/_lynx index 2d5978d27..c87563047 100644 --- a/Completion/Unix/Command/_lynx +++ b/Completion/Unix/Command/_lynx @@ -107,6 +107,6 @@ restrictions) outside_telnet print shell suspend telnet_port useragent ;; html) - _files -g '*.html' || _urls + _alternative 'files:file:_files "*.html"' 'urls:url:_urls' ;; esac diff --git a/Completion/Unix/Command/_w3m b/Completion/Unix/Command/_w3m index a2a0d0b32..798f2e760 100644 --- a/Completion/Unix/Command/_w3m +++ b/Completion/Unix/Command/_w3m @@ -42,7 +42,7 @@ case $state in compadd $_w3mhistory fi - _urls || _files -g '*.html' + _alternative 'files:file:_files "*.html"' 'urls:url:_urls' ;; esac |