X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-jump.el;h=506ae2c8e399785c9f56169a1f16589c5d3ad807;hb=fd6f65f241854cd55e7e4d7c9cb9a71bd9f70cb4;hp=05ec57ec5e13aeb2071f5a2a9282ad63bb3af793;hpb=ce44657c9e4919b1e4bbbbbe37dbd72257d40736;p=notmuch diff --git a/emacs/notmuch-jump.el b/emacs/notmuch-jump.el index 05ec57ec..506ae2c8 100644 --- a/emacs/notmuch-jump.el +++ b/emacs/notmuch-jump.el @@ -54,7 +54,9 @@ fast way to jump to a saved search from anywhere in Notmuch." (oldest-first t) (otherwise (default-value 'notmuch-search-oldest-first))))) (push (list key name - `(lambda () (notmuch-search ',query ',oldest-first))) + (if (eq (plist-get saved-search :search-type) 'tree) + `(lambda () (notmuch-tree ',query)) + `(lambda () (notmuch-search ',query ',oldest-first)))) action-map))))) (setq action-map (nreverse action-map)) @@ -170,3 +172,7 @@ buffer." (setq notmuch-jump--action ',(third action)) (exit-minibuffer)))) map)) + +;; + +(provide 'notmuch-jump)