From 8a3718bf2866dfa322a8b1d5c5f293a422154fa9 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 3 Aug 2021 15:15:45 +0100 Subject: notmuch: widen current search --- notmuch.org | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'notmuch.org') diff --git a/notmuch.org b/notmuch.org index 2f617b6..e0f92a7 100644 --- a/notmuch.org +++ b/notmuch.org @@ -100,6 +100,13 @@ ,(jao-notmuch--q "new" nil "n" '("tag:new")) ,(jao-notmuch--q "draft" nil "d" '("tag:draft")))) + (defun jao-notmuch-tree-widen-search () + (interactive) + (when-let ((query (notmuch-tree-get-query))) + (let ((notmuch-show-process-crypto (notmuch-tree--message-process-crypto))) + (notmuch-tree-close-message-window) + (notmuch-tree (string-replace jao-notmuch--newa "" query))))) + (defun jao-notmuch-widen-searches (searches) (mapcar (lambda (s) (let ((q (plist-get s :query))) -- cgit v1.2.3