1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

22234: Adeodato Simó's quilt completion improvements.

This commit is contained in:
Clint Adams 2006-02-11 22:39:28 +00:00
parent ba30034faf
commit 492943ac71
2 changed files with 26 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-02-11 Clint Adams <clint@zsh.org>
* 22234: Completion/Unix/Command/_quilt: Adeodato Simó's
quilt completion improvements.
2006-02-09 Wayne Davison <wayned@users.sourceforge.net>
* 22206: Src/Zle/zle.h, Src/Zle/zle_misc.c: fixed broken

View file

@ -7,4 +7,24 @@ _arguments \
':quilt command:(add files import previous setup annotate fold mail push
snapshot applied fork new refresh top delete graph next remove unapplied
diff grep patches rename upgrade edit header pop series)' \
'*::file:_files'
'*::subcmd:->subcmd' && return 0
case "$state" in
(subcmd)
case "$words[1]" in
(applied|delete|files|graph|header|next|previous|refresh|unapplied)
_wanted -V 'patches' expl 'patch' compadd ${(f)"$(quilt series)"}
;;
(push)
_wanted -V 'unapplied patches' expl 'patch' compadd ${(f)"$(quilt unapplied)"}
;;
(pop)
_wanted -V 'applied patches' expl 'patch' compadd ${(f)"$(quilt applied)"}
;;
(*)
_files
;;
esac
;;
esac