mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-18 15:21:16 +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>
|
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:
|
* Marc Chantreux: users/26645: Completion/X/Command/_gv:
|
||||||
update options in gv completion
|
update options in gv completion
|
||||||
|
|
||||||
|
|
|
@ -20,11 +20,11 @@ case $state in
|
||||||
subcmd)
|
subcmd)
|
||||||
args=(
|
args=(
|
||||||
'-help[display help information]'
|
'-help[display help information]'
|
||||||
'*:string:_guard "^-*" "search string"'
|
'*: :_guard "^-*" "search string"'
|
||||||
)
|
)
|
||||||
case "$words[1]" in
|
case "$words[1]" in
|
||||||
ask|cia|cnn|deblogs|excite|filesearching|foldoc|happypenguin|slashdot|slinuxdoc|sundocs|sunsolve|xxx)
|
ask|cia|cnn|deblogs|excite|filesearching|foldoc|happypenguin|slashdot|slinuxdoc|sundocs|sunsolve|xxx)
|
||||||
_message -e string 'search string'
|
_message -e strings 'search string'
|
||||||
;;
|
;;
|
||||||
alioth)
|
alioth)
|
||||||
_arguments $args \
|
_arguments $args \
|
||||||
|
@ -164,7 +164,7 @@ case $state in
|
||||||
'-doc[view PTS documentation]' && ret=0
|
'-doc[view PTS documentation]' && ret=0
|
||||||
;;
|
;;
|
||||||
debsec)
|
debsec)
|
||||||
_message -e string 'package name, bug number or CVE ID'
|
_message -e strings 'package name, bug number or CVE ID'
|
||||||
;;
|
;;
|
||||||
deja)
|
deja)
|
||||||
_arguments $args \
|
_arguments $args \
|
||||||
|
@ -261,9 +261,9 @@ case $state in
|
||||||
'-head=:display headlines:(on off)' \
|
'-head=:display headlines:(on off)' \
|
||||||
'-grid=:show results in grid:(on off)' \
|
'-grid=:show results in grid:(on off)' \
|
||||||
'-spell=:spelling tolerance:(off standard force)' \
|
'-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
|
compadd $(look "${PREFIX}") && ret=0
|
||||||
;;
|
;;
|
||||||
netbsd|openbsd)
|
netbsd|openbsd)
|
||||||
|
@ -422,10 +422,10 @@ case $state in
|
||||||
'-results=-[specify number of results to return]:number' && ret=0
|
'-results=-[specify number of results to return]:number' && ret=0
|
||||||
;;
|
;;
|
||||||
yubnub)
|
yubnub)
|
||||||
_message -e command 'Yubnub Command'
|
_message -e commands 'Yubnub Command'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
_message -e string 'search string'
|
_message -e strings 'search string'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
@ -434,7 +434,7 @@ case $state in
|
||||||
local it
|
local it
|
||||||
# list the applets
|
# list the applets
|
||||||
set -- ${${(f)"$(_call_program elvi surfraw -elvi)"}%%[[:space:]]##-- *}
|
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
|
# then list the bookmarks
|
||||||
for it in \
|
for it in \
|
||||||
$^xdg_config_dirs/surfraw/bookmarks(Nr) \
|
$^xdg_config_dirs/surfraw/bookmarks(Nr) \
|
||||||
|
|
Loading…
Reference in a new issue