1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00

38780: include variants containing non alphanumeric symbols in completion

This commit is contained in:
arno 2016-07-05 23:27:59 +02:00 committed by Oliver Kiddle
parent 92d516cfa7
commit 080b1cabab
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2016-07-05 Oliver Kiddle <opk@zsh.org>
* arno: 38780: Completion/X/Command/_setxkbmap: include
variants containing non alphanumeric symbols in completion
* Jordan Klassen: users/21551 (tweaked per users/21560):
Completion/Unix/Command/_git: new git subtree completion

View file

@ -1,4 +1,4 @@
# compdef setxkbmap
#compdef setxkbmap
# TODO:
# model, option, symbols and types suggestions
@ -90,7 +90,7 @@ _setxkbmap_variant () {
fi
lines=("${(f)$(< ${file})}")
variants=(${${${(M)lines:#*xkb_symbols*\"([[:alnum:]])##\"*}##*xkb_symbols([^\"])##\"}%%\"*})
variants=(${${${(M)lines:#*xkb_symbols*\"([^\"])##\"*}##*xkb_symbols([^\"])##\"}%%\"*})
_wanted variant expl 'variant' compadd -a variants