summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-notmuch.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-11-08 22:21:52 +0000
committerjao <jao@gnu.org>2025-11-08 22:21:52 +0000
commite6f74b28476dcd91bd106d52a90a294d96e6597c (patch)
tree6c7a0c585b33a2a1b7ae0ebd9bdbeaa288505005 /custom/jao-custom-notmuch.el
parent816b371f2e7217438b82371f7a140634bed6ca8c (diff)
downloadelibs-e6f74b28476dcd91bd106d52a90a294d96e6597c.tar.gz
elibs-e6f74b28476dcd91bd106d52a90a294d96e6597c.tar.bz2
notmuch: search jump tweaks
Diffstat (limited to 'custom/jao-custom-notmuch.el')
-rw-r--r--custom/jao-custom-notmuch.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index 92b9be0..ade064b 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -1,4 +1,4 @@
-;; -*- lexical-binding: t; -*-
+;;; -*- lexical-binding: t; -*-
;;; minibuffer
(defvar jao-notmuch-minibuffer-string "")
@@ -207,8 +207,10 @@ ch--search-keys i)
"Jump to a saved, non-zero count search."
(interactive)
(if-let* ((searches (jao-notmuch--searches-w/new notmuch-saved-searches)))
- (if (= 1 (length searches))
- (let* ((q (car searches))
+ (if (= 2 (length searches))
+ (let* ((q (seq-remove (lambda (q) (string= "new" (plist-get q :name)))
+ searches))
+ (q (car q))
(of (eq 'oldest-first (plist-get q :sort-order)))
(query (plist-get q :query)))
(notmuch-tree query nil nil nil nil nil nil of t))