From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id DA1216DE0FB1 for ; Thu, 27 Feb 2020 09:17:02 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CmwjIM80"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.041 X-Spam-Level: X-Spam-Status: No, score=0.041 tagged_above=-999 required=5 tests=[AWL=-0.008, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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 unJhf9UMKvWm for ; Thu, 27 Feb 2020 09:17:02 -0800 (PST) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by arlo.cworth.org (Postfix) with ESMTPS id 090156DE0F4F for ; Thu, 27 Feb 2020 09:17:02 -0800 (PST) Received: by mail-wr1-f67.google.com with SMTP id r17so4396183wrj.7 for ; Thu, 27 Feb 2020 09:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=cu6zdkIeEqaG+nZ9X1d+7/gvaWC6aruID1KSOQ17pFE=; b=CmwjIM80e//r+xvniy8kzmfmchNfTcKzYro7a9JUVkEbdO4FVXC+KKX0eJ1BHvsgNl +yXMBPK9LFNhv4cAIt3rydHBAZArZl6rBkp6VNh1Xyule8PRnuh09jOvMNKYNR4Phvg0 WMdpIU34hEQ01nU576iN0DmayQllGQq3rMASQmaVDN3WnKv9L+3GEizi+akpFBKoF9cQ X7bGiN6hU7ejhQ94NRjAX4avdKwCWlVpKovwr7RCyUdpC/uyCJVhDj4L/8EsocMFOmKD 2zmPSGc/XFqWx1XVAu0bC4K1IpONwSy0EwDZw4ZVvf5Ki+u/6LDqsymyEpU3be245piS wYyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cu6zdkIeEqaG+nZ9X1d+7/gvaWC6aruID1KSOQ17pFE=; b=Sdaw83AJEWIls/2ddvV33xlRuUif8+UMHe1RLkxxruhX2O4BG2YdBr4dISosWw/eZO dqr1ryucBPVsnWOz9i7wJPN/7OL7/YQhA3O71YMLO8SpgaXWLJMlQgx3wvEX8VXR9n7E qKmeylyO1xhRIc4GoDaK9weBI4qRcnRIUM6BwYZQC0vuO5z0P482VrYC9j+XH5dhXwVD Nt95uYIZ/JZCpf/kpKbPMW9BvV9ZthkRIa8g2s294YERd2e3DVHTyo35jGzhxDdnG7oz 4JdSXGVb/+8AH16WTMJIyj/7zRqkKvWyP4rptf7f3I0pYWaxISe8WcsYDg2hkfUQ2x7c 1vIg== X-Gm-Message-State: APjAAAWDaG11w09K9VOg8z8Zak+m2Fkw8Alr45NmNbIWlK0Z2SRbhDCh KbnPENawBArzYhwXZhkfVgegZYHq X-Google-Smtp-Source: APXvYqzHoqwLVx3fFCMfgO6OyxqbWySqVHVd4wizGlu/A12dnlD5iM3+XErntWzPmLzzRW5ihVM+lw== X-Received: by 2002:adf:fac3:: with SMTP id a3mr5877968wrs.370.1582823819695; Thu, 27 Feb 2020 09:16:59 -0800 (PST) Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) by smtp.gmail.com with ESMTPSA id b7sm8194447wrs.97.2020.02.27.09.16.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Feb 2020 09:16:59 -0800 (PST) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH 0/6] Add an unthreaded mode Date: Thu, 27 Feb 2020 17:16:46 +0000 Message-Id: <20200227171652.18187-1-markwalters1009@gmail.com> X-Mailer: git-send-email 2.11.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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, 27 Feb 2020 17:17:03 -0000 This series adds an unthreaded mode. In this mode all messages matching the query are shown, one per line, in unthreaded (reverse) date order. For some discussion of such a mode see id:87mupcay3s.fsf@tethera.net and subsequent thread. The main key bindings are u to run an unthreaded search, and U to rerun the current query in unthreaded view. Most of the functionality comes from the existing notmuch-tree code so it is relatively simple. I have been running some very similar code for just over a year and finally found time to tidy and submit it. One note: --entire-thread=false outputs just the matching messages (not the entire threads) but still in threaded order, and this option can be used by pre-existing emacs functionality (depending on user settings); this is why I added a new --unthreaded option. Best wishes Mark Mark Walters (6): notmuch-show.c: add an option for messages to be returned unthreaded Introduce unthreaded mode Unthreaded mode: allow different result format Unthreaded mode: allow user to choose different `show out' than tree Add a U binding to switch to unthreaded from other views notmuch-hello/jump: allow saved searches to specify unthreaded mode emacs/notmuch-hello.el | 31 +++++++++++------ emacs/notmuch-jump.el | 10 ++++-- emacs/notmuch-lib.el | 1 + emacs/notmuch-show.el | 12 ++++++- emacs/notmuch-tree.el | 92 +++++++++++++++++++++++++++++++++++++++++++------- emacs/notmuch.el | 6 ++++ notmuch-show.c | 61 +++++++++++++++++++++++++++++---- 7 files changed, 180 insertions(+), 33 deletions(-) -- 2.11.0