From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B22E86DE0924 for ; Sat, 26 Sep 2015 04:13:12 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.531 X-Spam-Level: X-Spam-Status: No, score=-0.531 tagged_above=-999 required=5 tests=[AWL=0.189, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n_Gnzb2W-XqJ for ; Sat, 26 Sep 2015 04:13:10 -0700 (PDT) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by arlo.cworth.org (Postfix) with ESMTPS id 826776DE02D2 for ; Sat, 26 Sep 2015 04:13:10 -0700 (PDT) Received: by wicgb1 with SMTP id gb1so49523662wic.1 for ; Sat, 26 Sep 2015 04:13:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jxu1TJb6YYvUAqn4PydEN+Sp5TKWDUQaYE2N/8SE+j4=; b=FYWLAk4y8Lz5suKGFfsOMpYkFqMNU+t1aya7nXmJJd3mQaXGb5pyetZnBpR4/XPYYv QrvRNw+BNu5NZaA4vvpjrQwMRpIkcs3njnhshPG+jKvuhyYlwq/Jh6TVEn3p/+jnkmlc Hbhh3n9z8iCbf8o4jJCSh/ZL0+QX54GHFrbe112l/3qf+5wuMKHKEJPNNenzxd1oW90K REFotZsUG5ceAKfHDjKtBLvHqp+iRwNKkuVHImviGOWkI1jeZ9gVmDL5N9wDMSTn49mf TzJnU2YJvlMwBUMKLX6rRlzSCknqF9dCHq8F5QJg9pIG1j0iE3p/w0YCGvhAXtDX6MpJ nSaA== X-Gm-Message-State: ALoCoQnbF5m+7W6A29CHQkerp0c1IQOnBWfC4qly4OX7p7tlJMFJJtoeTYXftsuQXGgLGDd61pGH X-Received: by 10.180.198.109 with SMTP id jb13mr8498499wic.17.1443265988850; Sat, 26 Sep 2015 04:13:08 -0700 (PDT) Received: from localhost (mobile-access-bcee63-221.dhcp.inet.fi. [188.238.99.221]) by smtp.gmail.com with ESMTPSA id c2sm7828271wiy.11.2015.09.26.04.13.07 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 Sep 2015 04:13:08 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH] completion: handle notmuch address --deduplicate= option Date: Sat, 26 Sep 2015 14:12:50 +0300 Message-Id: <1443265970-9875-1-git-send-email-jani@nikula.org> X-Mailer: git-send-email 2.1.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Sep 2015 11:13:12 -0000 Complete notmuch address --deduplicate=(no|mailbox|address). --- completion/notmuch-completion.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash index 960275d1f672..68b069013655 100644 --- a/completion/notmuch-completion.bash +++ b/completion/notmuch-completion.bash @@ -369,12 +369,16 @@ _notmuch_address() COMPREPLY=( $( compgen -W "true false flag all" -- "${cur}" ) ) return ;; + --deduplicate) + COMPREPLY=( $( compgen -W "no mailbox address" -- "${cur}" ) ) + return + ;; esac ! $split && case "${cur}" in -*) - local options="--format= --output= --sort= --exclude=" + local options="--format= --output= --sort= --exclude= --deduplicate=" compopt -o nospace COMPREPLY=( $(compgen -W "$options" -- ${cur}) ) ;; -- 2.1.4