From 4d183fc868bea9b159c700dec22581ccd19cb22e Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 25 May 2011 22:04:32 +0300 Subject: [PATCH] * update zsh completions (still very much WIP) --- contrib/mu-completion.zsh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/contrib/mu-completion.zsh b/contrib/mu-completion.zsh index 17b54624..4e0cbf98 100644 --- a/contrib/mu-completion.zsh +++ b/contrib/mu-completion.zsh @@ -24,7 +24,7 @@ _mu_commands() { 'index:scan your maildirs and import their metadata in the database' 'find:search for messages in the database' 'cfind:search for contacts (name + email) in the database' - 'cleanup:remove references to deleted messages from the database' + 'cleanup:remove deleted messages from the database' 'extract:list message-parts (attachments) and extract them to files' 'mkdir:create maildirs' 'view:display specific messages') @@ -35,6 +35,7 @@ _mu_commands() { _mu_common_options=( '--debug[output information useful for debugging mu]' '--quiet[do not give any non-critical information]' + '--no-color[do not use any colors in the output]' '--version[display mu version and copyright information]' '--log-stderr[log to standard error]' ) @@ -47,15 +48,20 @@ _mu_find_options=( '--fields[fields to display in the output]' '--sortfield[field to sort the output by]' '--descending[sort in descending order]' - '--summary-len[length of the summary for a message]' + '--summary[include a summary of the message]' '--bookmark[use a named bookmark]' '--output[set the kind of output for the query]' ) +_mu_view_options=( + '--summary[only show a summary of the message]' +) _mu_view() { - _files + _arguments -s : \ + $_mu_common_options \ + $_mu_view_options } _mu_extract() {