From 441f14b4b651102fbe6b4af6b345c184d638a1a1 Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Wed, 14 Oct 2015 09:38:21 +0100 Subject: [PATCH] [PATCH 0/2] Saved searches in tree view --- 53/a603322466b307a97d4a3139021fa8c429cad4 | 91 +++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 53/a603322466b307a97d4a3139021fa8c429cad4 diff --git a/53/a603322466b307a97d4a3139021fa8c429cad4 b/53/a603322466b307a97d4a3139021fa8c429cad4 new file mode 100644 index 000000000..3594f37b3 --- /dev/null +++ b/53/a603322466b307a97d4a3139021fa8c429cad4 @@ -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 arlo.cworth.org (Postfix) with ESMTP id 1A1216DE1770 + for ; Wed, 14 Oct 2015 01:38:36 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.57 +X-Spam-Level: +X-Spam-Status: No, score=-0.57 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] 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 I8CwUi9sFiIR for ; + Wed, 14 Oct 2015 01:38:34 -0700 (PDT) +Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com + [209.85.212.182]) + by arlo.cworth.org (Postfix) with ESMTPS id 0A4976DE0C51 + for ; Wed, 14 Oct 2015 01:38:33 -0700 (PDT) +Received: by wicgb1 with SMTP id gb1so120066724wic.1 + for ; Wed, 14 Oct 2015 01:38:32 -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; + bh=E7H8ZijrwIZrnu5nClcOf/zSQZGiZfExCCLIbvhWNl0=; + b=KMsXyQbqqjlKS4AviPQolOEY2e1iMu3LmIaGi5Afc3EbMD1+u+19Q1UV4/znTJcloG + 0tu+WCD/Yv5wGDmFaQkz/IUB9cytXn/QrDVnvJWIoxY2JpkW4q3q4FTm3wZOPdqMSrzM + D4acQ817mFDkMhkJCSReZ2S/dEPfNNURrUFdPRLnBWBhjvYB9bgG8QDwJHOVjzKlB1Z7 + Mc/YXIcNth4r5xDfOsgssl8+X7eweXcrVj6O7igSZXC3t6Otnqe/NSJMKbxCvQSDjZUB + EIbQBgI51yHS9HSzTf5UUl6GQgEOj3vtlWt/aXxBsUW5diNtKzTvjQZoStb3Va4N8E26 + oJ+w== +X-Received: by 10.180.189.69 with SMTP id gg5mr2694897wic.45.1444811912038; + Wed, 14 Oct 2015 01:38:32 -0700 (PDT) +Received: from localhost ([161.23.118.65]) + by smtp.gmail.com with ESMTPSA id bu19sm8530745wjb.45.2015.10.14.01.38.30 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Wed, 14 Oct 2015 01:38:31 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH 0/2] Saved searches in tree view +Date: Wed, 14 Oct 2015 09:38:21 +0100 +Message-Id: <1444811903-16741-1-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 2.1.4 +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: Wed, 14 Oct 2015 08:38:36 -0000 + +The first patch allows the user to customize saved searches to show +in tree view rather than search view (the choice also applies when the +saved-search is called from notmuch-jump rather than notmuch-hello). + +The second patch lets a user switch back from tree mode to search mode +with "S". This is analogous to using Z to switch from search mode or +show mode to tree mode. This patch is independent of the first patch, +but is more likely to be useful after the first patch. + +One small caveat: if you customize the saved-searches then existing +notmuch-hello buffers are not updated -- you need to refresh the +buffer before the change will register. (The same is true for changing +the sort order etc) + +Best wishes + +Mark + + +Mark Walters (2): + emacs: allow saved searches to select tree-view + emacs: tree: bind S to run the current query in search mode + + emacs/notmuch-hello.el | 21 ++++++++++++++++----- + emacs/notmuch-jump.el | 4 +++- + emacs/notmuch-tree.el | 8 ++++++++ + 3 files changed, 27 insertions(+), 6 deletions(-) + +-- +2.1.4 + -- 2.26.2