From 40d7552724dfceed337e542eaa5f2cca875a6d08 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 12:08:52 +0000 Subject: moved from Completion/X/_x_colormapid --- Completion/X/Type/_x_colormapid | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Completion/X/Type/_x_colormapid (limited to 'Completion/X') diff --git a/Completion/X/Type/_x_colormapid b/Completion/X/Type/_x_colormapid new file mode 100644 index 000000000..61b0a72f1 --- /dev/null +++ b/Completion/X/Type/_x_colormapid @@ -0,0 +1,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%% *}" -- cgit 1.4.1