about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarc Chantreux <eiro@phear.org>2021-04-09 21:44:54 +0200
committerOliver Kiddle <opk@zsh.org>2021-04-11 21:05:39 +0200
commit80d5210195593576dbffe10867cab358bbb58148 (patch)
treed0cc933873abfe2d3e2ed167b5da123305d3f086
parent90352a827858b221f35f4cf0c3f7c1dc7c7bd069 (diff)
downloadzsh-80d5210195593576dbffe10867cab358bbb58148.tar.gz
zsh-80d5210195593576dbffe10867cab358bbb58148.tar.xz
zsh-80d5210195593576dbffe10867cab358bbb58148.zip
48445: pluralize tags in _surfraw
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_surfraw16
2 files changed, 11 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 4e0ebcf9a..d48e6a329 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2021-04-11  Oliver Kiddle  <opk@zsh.org>
 
+	* Marc Chantreux: 48445: Completion/Unix/Command/_surfraw:
+	pluralize tags in _surfraw
+
 	* Marc Chantreux: users/26645: Completion/X/Command/_gv:
 	update options in gv completion
 
diff --git a/Completion/Unix/Command/_surfraw b/Completion/Unix/Command/_surfraw
index 4838f1e58..035066662 100644
--- a/Completion/Unix/Command/_surfraw
+++ b/Completion/Unix/Command/_surfraw
@@ -20,11 +20,11 @@ case $state in
   subcmd)
     args=(
       '-help[display help information]'
-      '*:string:_guard "^-*" "search string"'
+      '*: :_guard "^-*" "search string"'
     )
     case "$words[1]" in
       ask|cia|cnn|deblogs|excite|filesearching|foldoc|happypenguin|slashdot|slinuxdoc|sundocs|sunsolve|xxx)
-        _message -e string 'search string'
+        _message -e strings 'search string'
       ;;
       alioth)
         _arguments $args \
@@ -164,7 +164,7 @@ case $state in
           '-doc[view PTS documentation]' && ret=0
       ;;
       debsec)
-        _message -e string 'package name, bug number or CVE ID'
+        _message -e strings 'package name, bug number or CVE ID'
       ;; 
       deja)
         _arguments $args \
@@ -261,9 +261,9 @@ case $state in
           '-head=:display headlines:(on off)' \
           '-grid=:show results in grid:(on off)' \
           '-spell=:spelling tolerance:(off standard force)' \
-          '*:dictionary word:->dictword' && ret=0
+          '*:dictionary word:->words' && ret=0
 
-        [[ "$state" = dictword ]] && _wanted words expl 'dictionary word' \
+        [[ "$state" = words ]] && _wanted words expl 'dictionary word' \
             compadd $(look "${PREFIX}") && ret=0
       ;;
       netbsd|openbsd)
@@ -422,10 +422,10 @@ case $state in
           '-results=-[specify number of results to return]:number' && ret=0
       ;;
       yubnub)
-        _message -e command 'Yubnub Command'
+        _message -e commands 'Yubnub Command'
       ;;
       *)
-        _message -e string 'search string'
+        _message -e strings 'search string'
       ;;
     esac
   ;;
@@ -434,7 +434,7 @@ case $state in
     local it
     # list the applets
     set -- ${${(f)"$(_call_program elvi surfraw -elvi)"}%%[[:space:]]##-- *}
-    shift # the first line is an header: remove it
+    shift # the first line is a header: remove it
     # then list the bookmarks
     for it in \
       $^xdg_config_dirs/surfraw/bookmarks(Nr) \