Skip to content

Commit 0804dfb

Browse files
crpbokdana
authored andcommitted
github zsh-users#131: completion: minor updates
_apt-file: add list-indices (wording tweaked by dana) _bug: update bts backends from `reportbug --bts help` output _debsnap: complete -l as --list _deb_architectures: update archs (source: popcon) _losetup: remove "--delete" _rsync: add PROGRESS2 to --info _x_utils: add eventtype "button"
1 parent 9c15ad8 commit 0804dfb

File tree

8 files changed

+19
-9
lines changed

8 files changed

+19
-9
lines changed

ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
2025-06-05 dana <[email protected]>
22

3+
* Christopher Bock: github #131:
4+
Completion/Debian/Command/_apt-file,
5+
Completion/Debian/Command/_bug,
6+
Completion/Debian/Command/_debsnap,
7+
Completion/Debian/Type/_deb_architectures,
8+
Completion/Linux/Command/_losetup,
9+
Completion/Unix/Command/_rsync, Completion/X/Command/_x_utils:
10+
minor updates
11+
312
* Christopher Bock: github #131:
413
Completion/Debian/Command/_wanna-build: remove wanna-build
514

Completion/Debian/Command/_apt-file

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ case $state in
2828
'update:resynchronize package contents'
2929
{find,search}:'search in which package file is included'
3030
{list,show}:'list contents of a package'
31+
'list-indices:list known content indices'
3132
'purge:remove all Contents-<ARCH>.gz files in cache directory'
3233
)
3334
_describe -t commands 'apt-list command' cmds
@@ -46,7 +47,7 @@ case $state in
4647
list|show)
4748
_deb_packages avail
4849
;;
49-
update|purge)
50+
update|purge|list-indices)
5051
# do nothing
5152
;;
5253
*)

Completion/Debian/Command/_bug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _bug_commonargs=(
1010
)
1111

1212
_rb_commonargs=(
13-
'(-B --bts)'{-B,--bts=}'[use alternate BTS]:system:(debian gnome kde tdyc kde-debian)'
13+
'(-B --bts)'{-B,--bts=}'[use alternate BTS]:system:(debian ubuntu guug default Grml)'
1414
'(-l --ldap)'{-l,--ldap}'[enable LDAP support]'
1515
'(-l --ldap)--no-ldap[disable LDAP support]'
1616
'(--proxy --http_proxy)'--{http_,}'proxy=:proxy host:_hosts'

Completion/Debian/Command/_debsnap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _arguments \
1010
'(-d --destdir)'{-d+,--destdir=}'[set download directory]:download directory:_files -/' \
1111
'(-f --force)'{-f,--force}'[allow non-empty destination directory]' \
1212
'(-v --verbose)'{-v,--verbose}'[print configuration and report progress]' \
13-
--list"[list versions; don't download]" \
13+
'(-l --list)'{-l,--list}"[list versions; don't download]" \
1414
--binary'[operate on binary packages (default: source packages)]' \
1515
'*'{-a+,--architecture=}'[specify architectures to download]:architecture to download:_deb_architectures' \
1616
--first='[download all versions newer than this]:version number (lower bound):->versions' \

Completion/Debian/Type/_deb_architectures

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ local extra expl
44
zparseopts -E -D -a extra a:
55

66
_description architectures expl 'architecture'
7-
compadd "$@" "$expl[@]" alpha amd64 arm64 armel armhf hppa hurd-i386 i386 ia64 \
8-
kfreebsd-amd64 kfreebsd-i386 m68k mips mipsel powerpc powerpcspe ppc64 \
9-
ppc64el s390x sh4 sparc sparc64 x32 ${=extra[2]}
7+
compadd "$@" "$expl[@]" alpha amd64 arm arm64 armel armhf hppa hurd-i386 i386 \
8+
ia64 kfreebsd-amd64 loong64 loongarch6 m68k mips mips64el mipsel powerpc \
9+
ppc64 ppc64el riscv64 s390x sh4 sparc sparc64 x32 ${=extra[2]}

Completion/Linux/Command/_losetup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ _arguments -s -S \
2727
- '(resize)' \
2828
{-c,--set-capacity}'[reread the size of the file associated with the loop device]' \
2929
- 'detach' \
30-
'(-)'{--delete,--detach,-d}'[detach from specified loop device]' \
30+
'(-)'{--detach,-d}'[detach from specified loop device]' \
3131
"$device" \
3232
- '(detach-all)' \
3333
{-D,--detach-all}'[detach all associated loop devices]' \

Completion/Unix/Command/_rsync

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ _rsync_info() {
7878
local opts
7979
opts=( ${${(M)${(f)"$(_call_program values $words[1] --info=help)"}:#*Mention*}/ ##Me/[me} )
8080
(( $#opts )) && opts=( '(ALL NONE HELP)'${^opts}\] )
81-
_values -s , 'info option' $opts ALL NONE HELP
81+
_values -s , 'info option' $opts ALL NONE HELP PROGRESS2
8282
}
8383

8484
_rsync_debug() {

Completion/X/Command/_x_utils

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ xev)
7777
'-s[use save-under]' \
7878
'-name:window name' \
7979
'-rv' \
80-
'*-event:event mask:(keyboard mouse expose visibility structure substructure focus property colormap owner_grab_button randr)'
80+
'*-event:event mask:(keyboard mouse expose visibility structure substructure focus property colormap owner_grab_button randr button)'
8181
;;
8282
xhost)
8383
local type tmp match

0 commit comments

Comments
 (0)