zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: update mutt and irssi completions
@ 2012-11-11 23:20 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2012-11-11 23:20 UTC (permalink / raw)
  To: Zsh workers

The additional mutt options are perhaps for the development branch but
that seems to be what every Linux distribution is including. For irssi,
there was only one extra option and not a very exciting one at that but
it is good to have it up-to-date.

Oliver

diff --git a/Completion/Unix/Command/_irssi b/Completion/Unix/Command/_irssi
index ee1e1ef..fd64b5e 100644
--- a/Completion/Unix/Command/_irssi
+++ b/Completion/Unix/Command/_irssi
@@ -30,6 +30,7 @@ _arguments -s \
   '--noconnect[disable autoconnect]' \
   '(-n --nick)'{-n,--nick=}'[set nick name]:nick:_irssi_nick' \
   '(-h --hostname)'{-h,--hostname=}'[specify hostname]:hostname:_hosts' \
+  '(-d --dummy)'{-d,--dummy}'[use the dummy terminal mode]' \
   '(-)'{-v,--version}'[display version information]' \
   '(-)'{-\?,--help}'[display help information]' \
   '(-)--usage[display usage]'
diff --git a/Completion/Unix/Command/_mutt b/Completion/Unix/Command/_mutt
index c9ff98a..3d433a0 100644
--- a/Completion/Unix/Command/_mutt
+++ b/Completion/Unix/Command/_mutt
@@ -1,11 +1,14 @@
 #compdef mutt
 
-_arguments -s \
+_arguments -s -S \
   '::recipient:_email_addresses -n mutt' \
-  '*-a[attach file using MIME]:file attachment:_files' \
+  '(- :)-A[expand given alias]:alias:_email_addresses -n mutt' \
+  '*-a[attach file using MIME]::file attachment:_files' \
   '*-b[specify a BCC recipient]:BCC recipient:_email_addresses -n mutt' \
   '*-c[specify a CC recipient]:CC recipient:_email_addresses -n mutt' \
-  '-e+[specify a post-init configuration command]:post-init configuration:' \
+  '(- :)-D[print the value of all variables]' \
+  '-d+[log debugging output to ~/.muttdebug0]:level:(1 2 3 4 5)' \
+  '-e+[specify a post-init configuration command]:post-init configuration' \
   '-f+[specify mailbox to load]:mailbox: _mailboxes' \
   '-F+[specify an init file]:init file:_files' \
   '-h[display help]' \
@@ -14,6 +17,7 @@ _arguments -s \
   '-m+[specify default mailbox type]:mailbox type:(mbox MMDF MH Maildir)' \
   '-n[bypass system configuration]' \
   '-p[resume postponed message]' \
+  '(- :)-Q+[query a configuration variable]:variable:(${${(f)"$(_call_program variables mutt -D 2>/dev/null)"}%%( is|=)*})' \
   '-R[open in read-only mode]' \
   '-s+[specify a subject]:subject:' \
   '-v[display mutt version]' \


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-11 23:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-11 23:20 PATCH: update mutt and irssi completions Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).