From c45a530beaa2759fcd9a1ee8ae5909b4f59da992 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Wed, 31 Dec 2014 21:36:58 +0100 Subject: [PATCH] Re: [PATCH 2/2] completion: complete notmuch insert --folder to maildir folders only --- 0f/f0fc39aafa223b53193e2ad26189b01b7f6f74 | 63 +++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 0f/f0fc39aafa223b53193e2ad26189b01b7f6f74 diff --git a/0f/f0fc39aafa223b53193e2ad26189b01b7f6f74 b/0f/f0fc39aafa223b53193e2ad26189b01b7f6f74 new file mode 100644 index 000000000..844529f5b --- /dev/null +++ b/0f/f0fc39aafa223b53193e2ad26189b01b7f6f74 @@ -0,0 +1,63 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 71BD1431FC7 + for ; Wed, 31 Dec 2014 12:37:10 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id bHfRyXMapQE2 for ; + Wed, 31 Dec 2014 12:37:07 -0800 (PST) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id A3D79431FC0 + for ; Wed, 31 Dec 2014 12:37:07 -0800 (PST) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1Y6Q0t-0000XV-Va; Wed, 31 Dec 2014 16:37:03 -0400 +Received: (nullmailer pid 6894 invoked by uid 1000); Wed, 31 Dec 2014 + 20:36:58 -0000 +From: David Bremner +To: Jani Nikula , notmuch@notmuchmail.org +Subject: Re: [PATCH 2/2] completion: complete notmuch insert --folder to + maildir folders only +In-Reply-To: <1415648143-19923-2-git-send-email-jani@nikula.org> +References: <1415648143-19923-1-git-send-email-jani@nikula.org> + <1415648143-19923-2-git-send-email-jani@nikula.org> +User-Agent: Notmuch/0.19+7~g5d7f7a6 (http://notmuchmail.org) Emacs/24.4.1 + (x86_64-pc-linux-gnu) +Date: Wed, 31 Dec 2014 21:36:58 +0100 +Message-ID: <871tnfh7yt.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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: Wed, 31 Dec 2014 20:37:10 -0000 + +Jani Nikula writes: +> + local path=`notmuch config get database.path` +> + compopt -o nospace +> + COMPREPLY=( $(compgen -d "$path/${cur##folder:}" | \ +> + sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$" + +I'm a bit confused here. Why is 'folder:' being stripped? Too much +copy-pasta? + +d -- 2.26.2