]> git.notmuchmail.org Git - notmuch/commit
emacs: add notmuch-search-edit-search and notmuch-tree-edit-search
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 18 Sep 2022 13:05:50 +0000 (16:05 +0300)
committerDavid Bremner <david@tethera.net>
Fri, 23 Sep 2022 23:23:58 +0000 (20:23 -0300)
commit3db892f43b4ac333a09dd05c8f230bf3f8d2b9e9
tree311e0a9fe2e09e7633eb75e4ed33141dedb66a4d
parent48d6b31485dfd3110b82fd8829063297284c78c0
emacs: add notmuch-search-edit-search and notmuch-tree-edit-search

...and bind these to "E" in their respective keymaps.

Expected to be called interactively, then using read-from-minibuffer
with current search string as initial contents for editing.
(Noninteractive use makes little sense, but is supported.)

With this one can expand (as an opposite to limit) their
query and have e.g. (some of their) saved searches as search
"templates".

While at it, removed `(defvar notmuch-search-query-string)` from
notmuch-tree.el; it is unused (`notmuch-tree-basic-query` is used
instead).

Thanks to Jose Antonio Ortega Ruiz for his example for notmuch-tree
code, and better interactive use.
emacs/notmuch-tree.el
emacs/notmuch.el