From e00d413faf31f98770241176f174abe32ef29301 Mon Sep 17 00:00:00 2001 From: Matthew Lear Date: Tue, 14 Jul 2015 12:32:17 +0100 Subject: [PATCH] (emacs) customise key bindings taking text input --- ff/2b9008f1c3e16ab119383a233e9090fdd01aaa | 82 +++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 ff/2b9008f1c3e16ab119383a233e9090fdd01aaa diff --git a/ff/2b9008f1c3e16ab119383a233e9090fdd01aaa b/ff/2b9008f1c3e16ab119383a233e9090fdd01aaa new file mode 100644 index 000000000..599cd8296 --- /dev/null +++ b/ff/2b9008f1c3e16ab119383a233e9090fdd01aaa @@ -0,0 +1,82 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id AC3C36DE0A7F + for ; Tue, 14 Jul 2015 04:40:02 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.512 +X-Spam-Level: +X-Spam-Status: No, score=-0.512 tagged_above=-999 required=5 tests=[AWL=0.188, + RCVD_IN_DNSWL_LOW=-0.7] 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 vKUs5NeZsRBq for ; + Tue, 14 Jul 2015 04:40:00 -0700 (PDT) +X-Greylist: delayed 456 seconds by postgrey-1.35 at arlo; + Tue, 14 Jul 2015 04:40:00 PDT +Received: from avasout04.plus.net (avasout04.plus.net [212.159.14.19]) + by arlo.cworth.org (Postfix) with ESMTPS id 14B696DE02DD + for ; Tue, 14 Jul 2015 04:39:59 -0700 (PDT) +Received: from localhost ([84.93.237.98]) by avasout04 with smtp + id sBYH1q007283uBY01BYJSd; Tue, 14 Jul 2015 12:32:19 +0100 +X-CM-Score: 0.00 +X-CNFS-Analysis: v=2.1 cv=JOrGyJ+b c=1 sm=1 tr=0 + a=BJaFPv9AyABFDM2hXLRoEA==:117 a=BJaFPv9AyABFDM2hXLRoEA==:17 a=0Bzu9jTXAAAA:8 + a=80hmnl3cAAAA:8 a=qFRnvRBcnqcA:10 a=8nJEP1OIZ-IA:10 a=zOBTXjUuO1YA:10 + a=7SeAVy26aQNrBdFefJwA:9 a=wPNLvfGTeEIA:10 +Received: from localhost ([127.0.0.1] helo=webmail.plus.net) + by localhost with esmtp (Exim 4.76) + (envelope-from ) id 1ZEyRd-0006yv-3o + for notmuch@notmuchmail.org; Tue, 14 Jul 2015 12:32:17 +0100 +Received: from 216.31.211.11 (proxying for unknown) + (SquirrelMail authenticated user bubblegen+matt) + by webmail.plus.net with HTTP; Tue, 14 Jul 2015 12:32:17 +0100 +Message-ID: <8cd45d0665469d8f5e98928e61e9a411.squirrel@webmail.plus.net> +Date: Tue, 14 Jul 2015 12:32:17 +0100 +Subject: (emacs) customise key bindings taking text input +From: "Matthew Lear" +To: notmuch@notmuchmail.org +Reply-To: matt@bubblegen.co.uk +User-Agent: SquirrelMail +MIME-Version: 1.0 +Content-Type: text/plain;charset=iso-8859-1 +Content-Transfer-Encoding: 8bit +X-Priority: 3 (Normal) +Importance: Normal +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: Tue, 14 Jul 2015 11:40:02 -0000 + +Hi all, + +I was wondering if there was a way to add a new search similar to what +pressing s does, but make it use a predefined list of search terms in +addition to the text being entered? For example, I have reams of bug +notification emails which currently have various tags applied. If I wanted +to search a subset of these tags with a number (bug id) in the subject, +right now I have to press s and type tag:foo and tag:bar and subject:1234. +If I could add a new search option (eg 'B') and after pressing that I +simply enter the bug id and hit return, it would save me a lot of typing. +I have custom searches set up which do the 'tag:foo and tag:bar' and I can +filter on the subject, but that still means pressing f and typing +subject:1234. + +I fear I'm rambling here but hopefully I've conveyed what I'm trying to do. +Is this possible? +Just trying to cut down on my typing ;-) + +Thanks, +-- Matt + -- 2.26.2