mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
54185+54209: set default value of verbose style to true
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2026-03-09 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
||||
* 54185 + 54209: Completion/Unix/Command/_find,
|
||||
Completion/Unix/Command/_git, Completion/Unix/Command/_iftop,
|
||||
Completion/Unix/Command/_tcpdump, Completion/Zsh/Type/_globquals,
|
||||
Completion/Zsh/Type/_parameters, Test/Y01completion.ztst: set
|
||||
default value of verbose style to true
|
||||
|
||||
2026-02-21 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* dana: 54203: Test/A08time.ztst: replace "read -t" with "zselect"
|
||||
|
||||
@@ -158,7 +158,7 @@ _arguments -C $args \
|
||||
if [[ $state = times ]]; then
|
||||
if ! compset -P '[+-]' || [[ -prefix '[0-9]' ]]; then
|
||||
compstate[list]+=' packed'
|
||||
if zstyle -t ":completion:${curcontext}:senses" verbose; then
|
||||
if zstyle -T ":completion:${curcontext}:senses" verbose; then
|
||||
zstyle -s ":completion:${curcontext}:senses" list-separator sep || sep=--
|
||||
default=" [default exactly]"
|
||||
disp=( "+ $sep before (older files)" "- $sep since (newer files)" )
|
||||
|
||||
@@ -1674,7 +1674,7 @@ _git-reset () {
|
||||
case $state in
|
||||
(file)
|
||||
local tree=HEAD
|
||||
if zstyle -t :completion:${curcontext}: verbose; then
|
||||
if zstyle -T :completion:${curcontext}: verbose; then
|
||||
if ! tree=$(_call_program headed git rev-parse --verify HEAD); then
|
||||
# well-known sha1 of the empty tree
|
||||
tree=4b825dc642cb6eb9a060e54bf8d69288fbee4904
|
||||
|
||||
@@ -4,7 +4,7 @@ _interfaces () {
|
||||
local disp expl sep
|
||||
_description interfaces expl 'network interface'
|
||||
_net_interfaces "$expl[@]"
|
||||
if zstyle -t ":completion:${curcontext}:interfaces" verbose; then
|
||||
if zstyle -T ":completion:${curcontext}:interfaces" verbose; then
|
||||
zstyle -s ":completion:${curcontext}:interfaces" list-separator sep || sep=--
|
||||
disp=( "any $sep capture on all interfaces" )
|
||||
compadd "$expl[@]" -ld disp any
|
||||
|
||||
@@ -13,7 +13,7 @@ _tcpdump_interfaces() {
|
||||
else
|
||||
_description interfaces expl 'network interface'
|
||||
_net_interfaces "$expl[@]"
|
||||
if zstyle -t ":completion:${curcontext}:interfaces" verbose; then
|
||||
if zstyle -T ":completion:${curcontext}:interfaces" verbose; then
|
||||
zstyle -s ":completion:${curcontext}:interfaces" list-separator sep || sep=--
|
||||
disp=( "any $sep capture on all interfaces" )
|
||||
compadd "$expl[@]" -ld disp any
|
||||
|
||||
@@ -120,14 +120,14 @@ while [[ -n $PREFIX ]]; do
|
||||
if ! compset -P '[Mwhmsd]' && [[ -z $PREFIX ]]; then
|
||||
tdisp=( seconds minutes hours days weeks Months )
|
||||
tmatch=( s m h d w M )
|
||||
if zstyle -t ":completion:${curcontext}:time-specifiers" verbose; then
|
||||
if zstyle -T ":completion:${curcontext}:time-specifiers" verbose; then
|
||||
zstyle -s ":completion:${curcontext}:time-specifiers" list-separator sep || sep=--
|
||||
print -v tdisp -f "%s ${sep//(#m)[%\\]/$MATCH$MATCH} %s" ${tmatch:^^tdisp}
|
||||
fi
|
||||
alts+=( "time-specifiers:time specifier:compadd -E 0 -d tdisp -S '' -a tmatch" )
|
||||
fi
|
||||
if ! compset -P '[-+]' && [[ -z $PREFIX ]]; then
|
||||
if zstyle -t ":completion:${curcontext}:senses" verbose; then
|
||||
if zstyle -T ":completion:${curcontext}:senses" verbose; then
|
||||
zstyle -s ":completion:${curcontext}:senses" list-separator sep || sep=--
|
||||
default=" [default exactly]"
|
||||
sdisp=( "+ $sep before (older files)" "- $sep since (newer files)" )
|
||||
|
||||
@@ -16,7 +16,7 @@ zstyle -t ":completion:${curcontext}:parameters" prefix-needed &&
|
||||
_description parameters expl parameter
|
||||
zparseopts -D -K -E g:=pattern
|
||||
|
||||
if zstyle -t ":completion:${curcontext}:parameters" verbose; then
|
||||
if zstyle -T ":completion:${curcontext}:parameters" verbose; then
|
||||
described=(
|
||||
"${(@M)${(@k)parameters[(R)$~pattern[2]~*(hideval|local|special)*]}:#$~pfilt*}"
|
||||
)
|
||||
|
||||
@@ -348,7 +348,7 @@ F:regression test workers/31611
|
||||
>NO:{path}
|
||||
>NO:{paths}
|
||||
|
||||
comptesteval 'zstyle -d ":completion:*:parameters" verbose'
|
||||
comptesteval 'zstyle ":completion:*:parameters" verbose no'
|
||||
comptest $': $ba\t'
|
||||
0:parameter values not shown without verbose
|
||||
>line: {: $ba}{}
|
||||
|
||||
Reference in New Issue
Block a user