1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 88911431FCB
\r
6 for <notmuch@notmuchmail.org>; Thu, 1 Jan 2015 06:34:28 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id wQm6D63yiOOM for <notmuch@notmuchmail.org>;
\r
16 Thu, 1 Jan 2015 06:34:25 -0800 (PST)
\r
17 Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com
\r
18 [209.85.212.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 1B031431FC0
\r
21 for <notmuch@notmuchmail.org>; Thu, 1 Jan 2015 06:34:25 -0800 (PST)
\r
22 Received: by mail-wi0-f182.google.com with SMTP id h11so26668901wiw.9
\r
23 for <notmuch@notmuchmail.org>; Thu, 01 Jan 2015 06:34:22 -0800 (PST)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=1e100.net; s=20130820;
\r
26 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
\r
28 bh=htE6h2g+eUYNuT1r2DZHe3TviNUn8x+z9n88Lw2hySw=;
\r
29 b=M6OiCsyjsYMIlPOWphwKiZf99Y81QjyX9GKPgRH3Vmhxy1u3szcFbZxm72RmlItmz3
\r
30 RqKScsTl8g0MP2cN3Igdg3m3ZE8QXSkGEb9V3QF+nDPPKutLdq4owpQiFImM190mmnU/
\r
31 TsKzPJBKze0KtXYd+xfcO3M+fxIbfF8g3VgRl1G33Mr04u7a5bkeh7pMskFUt7dkIfZ8
\r
32 FV+58QqJM2ZrYiqngrm+TYOGKPEawyz7Ihjf3BlIh6FcZwFWrj+XfbMgYBbIbFlJmE23
\r
33 fZyOdhUio8R9dvC02VbT0z8ZiPZYe9eGml9gA61Ph4wbs/7gcbOdqqu7kWItTBxfcD71
\r
36 ALoCoQm2YXKPNYdq0PP/3/bhXfXrWfkVrQsIv1I2rS3Q/uiIIm6KYmk5UlAjADmEuAiDwAEy/iCd
\r
37 X-Received: by 10.194.246.167 with SMTP id
\r
38 xx7mr141234961wjc.118.1420122862837; Thu, 01 Jan 2015 06:34:22 -0800 (PST)
\r
39 Received: from localhost (dsl-hkibrasgw2-58c371-91.dhcp.inet.fi.
\r
40 [88.195.113.91]) by mx.google.com with ESMTPSA id
\r
41 dc1sm45933654wib.18.2015.01.01.06.34.21
\r
42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
43 Thu, 01 Jan 2015 06:34:22 -0800 (PST)
\r
44 From: Jani Nikula <jani@nikula.org>
\r
45 To: notmuch@notmuchmail.org
\r
46 Subject: [PATCH v2] completion: complete notmuch insert --folder to maildir
\r
48 Date: Thu, 1 Jan 2015 16:34:30 +0200
\r
49 Message-Id: <1420122870-13134-1-git-send-email-jani@nikula.org>
\r
50 X-Mailer: git-send-email 2.1.4
\r
51 In-Reply-To: <1415648143-19923-2-git-send-email-jani@nikula.org>
\r
52 References: <1415648143-19923-2-git-send-email-jani@nikula.org>
\r
53 X-BeenThere: notmuch@notmuchmail.org
\r
54 X-Mailman-Version: 2.1.13
\r
56 List-Id: "Use and development of the notmuch mail system."
\r
57 <notmuch.notmuchmail.org>
\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
61 List-Post: <mailto:notmuch@notmuchmail.org>
\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
65 X-List-Received-Date: Thu, 01 Jan 2015 14:34:28 -0000
\r
67 The --folder option expects a folder relative from maildir root, so
\r
68 complete like the folder: search term.
\r
70 completion/notmuch-completion.bash | 5 ++++-
\r
71 1 file changed, 4 insertions(+), 1 deletion(-)
\r
73 diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash
\r
74 index 386437333742..d58dc8bed60f 100644
\r
75 --- a/completion/notmuch-completion.bash
\r
76 +++ b/completion/notmuch-completion.bash
\r
77 @@ -188,7 +188,10 @@ _notmuch_insert()
\r
82 + local path=`notmuch config get database.path`
\r
83 + compopt -o nospace
\r
84 + COMPREPLY=( $(compgen -d "$path/${cur}" | \
\r
85 + sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$" ) )
\r