mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: filter tag completions by current query
When filtering by tags in notmuch-search-filter-by-tag, only return tags related to the current query. Before, it was returning all tags. There's no reason to refine the current query with tags that don't exist in the current result set. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
baa4185c30
commit
0d0e2869b9
1 changed files with 1 additions and 1 deletions
|
@ -1076,7 +1076,7 @@ current search results AND the additional query string provided."
|
||||||
Runs a new search matching only messages that match both the
|
Runs a new search matching only messages that match both the
|
||||||
current search results AND that are tagged with the given tag."
|
current search results AND that are tagged with the given tag."
|
||||||
(interactive
|
(interactive
|
||||||
(list (notmuch-select-tag-with-completion "Filter by tag: ")))
|
(list (notmuch-select-tag-with-completion "Filter by tag: " notmuch-search-query-string)))
|
||||||
(notmuch-search (concat notmuch-search-query-string " and tag:" tag) notmuch-search-oldest-first))
|
(notmuch-search (concat notmuch-search-query-string " and tag:" tag) notmuch-search-oldest-first))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
|
Loading…
Reference in a new issue