Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#579529: zsh: bts completion is missing "affects"



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