blob: 61b0a72f1ea8446ef5247db7f1fc24e0f3801811 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#autoload
local expl list desc
_tags colormapids || return 1
list=(${(f)"$(xprop -root -f RGB_COLOR_MAP 32xcccccccxx ': $0\n'|awk -F'[ ():]' '/^[a-zA-Z_]+\(RGB_COLOR_MAP\)/ {print $5, "--", $1}')"})
if zstyle -T ":completion:${curcontext}:colormap-id" verbose; then
desc=(-ld list)
else
desc=()
fi
_wanted colormapids expl 'colormap id' \
compadd "$@" "$desc[@]" - "${(@)list%% *}"
|