From: Mark Walters Date: Thu, 22 Aug 2013 17:10:22 +0000 (+0100) Subject: [PATCH v3 07/11] contrib: pick: pass tab through to the message pane X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d0ebbfdb4a97898d5f638344c1fa21c3045bc971;p=notmuch-archives.git [PATCH v3 07/11] contrib: pick: pass tab through to the message pane --- diff --git a/4f/f534e6444fd98b7ff1fdab77c42adeec461b55 b/4f/f534e6444fd98b7ff1fdab77c42adeec461b55 new file mode 100644 index 000000000..69c41fec4 --- /dev/null +++ b/4f/f534e6444fd98b7ff1fdab77c42adeec461b55 @@ -0,0 +1,91 @@ +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 03D22429E52 + for ; Thu, 22 Aug 2013 10:11:16 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.201 +X-Spam-Level: +X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, + 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 710Ne-aocOkV for ; + Thu, 22 Aug 2013 10:11:10 -0700 (PDT) +Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com + [74.125.82.47]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + CD78A429E40 for ; Thu, 22 Aug 2013 10:10:48 -0700 + (PDT) +Received: by mail-wg0-f47.google.com with SMTP id j13so1895506wgh.14 + for ; Thu, 22 Aug 2013 10:10:47 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:in-reply-to:references; + bh=CAFN9u+yX0x3Tu+2DBmoc93ngekxrEKLfY8hZ7kkt88=; + b=GDH2l8Glwb4hsHNaIXWG8Ltshp5cQjDYu2QlD6P+KiQ6lixnIWl50FY/qJp+Mc+X+N + Ye093I42uiBRi+u16LOoYaptnsReBfkCMHDfEaDkIZ9jom5FQKsCboIDZx32mES/NfxM + f2F3VEEViYrK0b+7r98Y4tdoMvanGfQKHvG+B2nsG7avhrlV0C6W0XZ8vMa8JZMbiNOE + nEvCAqrH5H6gM61N1dQTXr+sWRB2BzOzm3ZwieZSc2PziRx3lg/RVYF8Hn6oUCnXVHE2 + uYdqKneyuT5BvqS43UKk5x/wpuJagTrISY54o5susXkJ0VFHwGvn/WhyjyXN7crVV/23 + RpmQ== +X-Received: by 10.180.9.69 with SMTP id x5mr21797359wia.41.1377191447728; + Thu, 22 Aug 2013 10:10:47 -0700 (PDT) +Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) + by mx.google.com with ESMTPSA id a8sm39516157wie.6.1969.12.31.16.00.00 + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Thu, 22 Aug 2013 10:10:46 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH v3 07/11] contrib: pick: pass tab through to the message pane +Date: Thu, 22 Aug 2013 18:10:22 +0100 +Message-Id: <1377191427-6821-8-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 1.7.9.1 +In-Reply-To: <1377191427-6821-1-git-send-email-markwalters1009@gmail.com> +References: <1377191427-6821-1-git-send-email-markwalters1009@gmail.com> +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: Thu, 22 Aug 2013 17:11:16 -0000 + +This makes tab move to next button in the message pane and binds +button activate (in message pane) to "e". This means that is easy to +toggle hidden parts or hidden citations etc in the message pane. +--- + contrib/notmuch-pick/notmuch-pick.el | 8 ++++++++ + 1 files changed, 8 insertions(+), 0 deletions(-) + +diff --git a/contrib/notmuch-pick/notmuch-pick.el b/contrib/notmuch-pick/notmuch-pick.el +index f24f2b3..3b1f85c 100644 +--- a/contrib/notmuch-pick/notmuch-pick.el ++++ b/contrib/notmuch-pick/notmuch-pick.el +@@ -216,6 +216,14 @@ This function does not give an error if there is no button." + (define-key map "w" 'notmuch-show-save-attachments) + (define-key map "v" 'notmuch-show-view-all-mime-parts) + (define-key map "c" 'notmuch-show-stash-map) ++ ++ ;; these apply to the message pane ++ (define-key map (kbd "M-TAB") (notmuch-pick-to-message-pane #'notmuch-show-previous-button)) ++ (define-key map (kbd "") (notmuch-pick-to-message-pane #'notmuch-show-previous-button)) ++ (define-key map (kbd "TAB") (notmuch-pick-to-message-pane #'notmuch-show-next-button)) ++ (define-key map "e" (notmuch-pick-to-message-pane #'notmuch-pick-button-activate)) ++ ++ ;; The main pick bindings + (define-key map "q" 'notmuch-pick-quit) + (define-key map "x" 'notmuch-pick-quit) + (define-key map "?" 'notmuch-help) +-- +1.7.9.1 +