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:
parent
92d516cfa7
commit
080b1cabab
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue