about summary refs log tree commit diff
path: root/Completion/X/_x_font
blob: 43a713b34b622463f190f277f47b4c18c122ee78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#autoload

local expl

_wanted fonts || return 1

# This *has* to be improved some day...

if (( ! $+_font_cache )); then
  typeset -gU _font_cache

 _font_cache=( "${(@)^${(@f)$(_call fonts xlsfonts)}%%--*}--" )
fi

_all_labels fonts expl font \
    compadd -M 'r:|-=* r:|=*' "$@" -S '' - "$_font_cache[@]"