mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
48445: pluralize tags in _surfraw
This commit is contained in:
parent
90352a8278
commit
80d5210195
2 changed files with 11 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue