Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#579529: zsh: bts completion is missing "affects"
- X-seq: zsh-workers 27931
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Bernd Zeimetz <bzed@xxxxxxxxxx>, 579529@xxxxxxxxxxxxxxx
- Subject: Re: Bug#579529: zsh: bts completion is missing "affects"
- Date: Wed, 28 Apr 2010 12:14:28 +0000
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <20100428111712.32294.24083.reportbug@xxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20100428111712.32294.24083.reportbug@xxxxxxxxxxxxxxxx>
On Wed, Apr 28, 2010 at 01:17:12PM +0200, Bernd Zeimetz wrote:
> the completion for `bts` does not support "affects". The attached
> *untested* patch should fix that.
Thanks.
Index: Completion/Debian/Command/_bts
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_bts,v
retrieving revision 1.12
diff -u -r1.12 _bts
--- Completion/Debian/Command/_bts 10 Jul 2009 23:54:30 -0000 1.12
+++ Completion/Debian/Command/_bts 28 Apr 2010 12:13:37 -0000
@@ -26,7 +26,7 @@
reassign merge unmerge tag tags severity forwarded notforwarded help \
clone submitter found notfound block unblock user usertag usertags \
package owner noowner reportspam cache cleancache claim unclaim \
- subscribe unsubscribe fixed notfixed
+ subscribe unsubscribe fixed notfixed affects
return
fi
@@ -216,6 +216,15 @@
_wanted sep expl 'separator' compadd -S ' ' , .
fi
;;
+ (affects)
+ if [[ CURRENT -eq 2 ]]; then
+ _message -e bugnum 'bug number'
+ elif [[ CURRENT -eq 3 ]]; then
+ _wanted operator expl 'operator' compadd - '+' '-' '='
+ else
+ _wanted package expl 'package' _deb_packages avail
+ fi
+ ;;
help)
;&
*) _wanted sep expl 'separator' compadd -S ' ' , .
Messages sorted by:
Reverse Date,
Date,
Thread,
Author