From: Austin Clements Date: Sun, 13 Jul 2014 03:50:09 +0000 (+2000) Subject: Re: [PATCH v2] emacs: Add support for saved search accelerators X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b36582f1123109be91dc26cb3df22149cfc80283;p=notmuch-archives.git Re: [PATCH v2] emacs: Add support for saved search accelerators --- diff --git a/64/f62b43082773579dda418e1318446faee94794 b/64/f62b43082773579dda418e1318446faee94794 new file mode 100644 index 000000000..7a3111e94 --- /dev/null +++ b/64/f62b43082773579dda418e1318446faee94794 @@ -0,0 +1,111 @@ +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 0E746431FC7 + for ; Sat, 12 Jul 2014 20:50:23 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 zwf9KS8-PtmG for ; + Sat, 12 Jul 2014 20:50:15 -0700 (PDT) +Received: from dmz-mailsec-scanner-6.mit.edu (dmz-mailsec-scanner-6.mit.edu + [18.7.68.35]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id ACA0E431FBD + for ; Sat, 12 Jul 2014 20:50:15 -0700 (PDT) +X-AuditID: 12074423-f79bf6d000007580-98-53c201f7b8e4 +Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) + (using TLS with cipher AES256-SHA (256/256 bits)) + (Client did not present a certificate) + by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP + id 81.E2.30080.7F102C35; Sat, 12 Jul 2014 23:50:15 -0400 (EDT) +Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) + by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id s6D3oDMd015925; + Sat, 12 Jul 2014 23:50:14 -0400 +Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) + (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s6D3oBO6023083 + (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); + Sat, 12 Jul 2014 23:50:13 -0400 +Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80) + (envelope-from ) + id 1X6Ani-0005tR-Io; Sat, 12 Jul 2014 23:50:11 -0400 +Date: Sat, 12 Jul 2014 23:50:09 -0400 +From: Austin Clements +To: David Bremner +Subject: Re: [PATCH v2] emacs: Add support for saved search accelerators +Message-ID: <20140713035009.GZ4660@mit.edu> +References: <1399385776-19918-1-git-send-email-dme@dme.org> + <1399461694-25350-1-git-send-email-dme@dme.org> + <1399461694-25350-2-git-send-email-dme@dme.org> + <87ion2gyqo.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline +In-Reply-To: <87ion2gyqo.fsf@maritornes.cs.unb.ca> +User-Agent: Mutt/1.5.21 (2010-09-15) +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42IRYrdT0f3OeCjY4N4+Tosbrd2MFvvubGGy + uH5zJrMDs8eu53+ZPJ6tusXsseXQe+YA5igum5TUnMyy1CJ9uwSujK7m6cwFG7kqZn/7w9bA + uJqji5GTQ0LAROLvqgksELaYxIV769m6GLk4hARmM0msP/uLHcLZyChx7sYSFgjnNJPEhOXz + mCCcJYwSv+auYexi5OBgEVCVuDRdHWQUm4CGxLb9yxlBbBGg8NVtk9lAbGYBK4mLz/awg9jC + Ah4Sz5v2sIK08gpoS3xcxAgx8jijxKev08B6eQUEJU7OfMIC0aslcePfSyaQemYBaYnl/8A+ + 4BQwkmi6+48ZxBYVUJGYcnIb2wRGoVlIumch6Z6F0L2AkXkVo2xKbpVubmJmTnFqsm5xcmJe + XmqRrplebmaJXmpK6SZGcKi7KO9g/HNQ6RCjAAejEg/vg/UHg4VYE8uKK3MPMUpyMCmJ8mp+ + AQrxJeWnVGYkFmfEF5XmpBYfYpTgYFYS4RWUBsrxpiRWVqUW5cOkpDlYlMR531pbBQsJpCeW + pGanphakFsFkZTg4lCR4/zAcChYSLEpNT61Iy8wpQUgzcXCCDOcBGQ5MDUK8xQWJucWZ6RD5 + U4yKUuK8s0CaBUASGaV5cL2wVPSKURzoFWHetyBVPMA0Btf9CmgwE9Dg7f37QQaXJCKkpBoY + C2p4xB8/47ULm2Zx3ivnfHQdr/0Mn7RkxQ+a+7dtj+iRyFBjN2nd2TDV8pHh9YXiX977fV/d + fFBN9euFgECX6+k7nIIXTykQsbLYeHTCNDeDuWXmcy/ZienHnrBxX+bxj9d8bW62RJDq8QSz + Ji11oQL9u60T8+c3FM9kX6+ltYs1ruaY/0slluKMREMt5qLiRACbwu1IIAMAAA== +Cc: notmuch@notmuchmail.org +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: Sun, 13 Jul 2014 03:50:23 -0000 + +Quoth David Bremner on Jul 12 at 4:31 pm: +> David Edmondson writes: +> +> > Extended the saved search definition to allow the inclusion of an +> > accelerator key for the search. Bind 'j' in the common mode map as a +> > leader for such accelerator keys. +> +> I was trying this out without configuring any accelerators and it seemed +> a bit unfriendly. After hitting 'j' I more or less get stuck until I hit +> C-g. Even hitting ? did not produce any output. I think at minimum the +> user who hits j by mistake should not get stuck in a state she needs to +> C-g out of. + +Have you tried notmuch-go? + + https://github.com/aclements/notmuch/blob/go-hack/emacs/notmuch-go.el + +Once you load it, it's bound to 'g' everywhere. It shows all of the +available bindings/searches above the minibuffer as soon as you hit +'g'. I've been using notmuch-go happily for months (it's completely +supplanted hello for me). + +The right answer might be something between notmuch-go and dme's +patch. Currently notmuch-go uses a hard-coded set of searches, while +dme's patch derives them from the saved searches. notmuch-go may also +be more complicated than necessary; I had originally intended to do +some other things with it that never materialized and, now that I've +used it, I don't think they're necessary.