aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorJules Aguillon <juloo.dsi@gmail.com>2021-02-17 00:43:15 +0100
committerDavid Bremner <david@tethera.net>2021-04-26 20:16:12 -0300
commitc3c74621fa8a6ee2f5ca6a06ca1eb32e20227e65 (patch)
treed3f5376d1ce398f90639c97c5380ada629b39896 /vim
parent8af4cd160ab1fe63d79a2b6b16833b9020f1c6c0 (diff)
Vim: Respect excluded tags when showing a thread
Other queries have exclude_tags taken into account but this one. This is annoying when using an excluded tag to ignore past messages from a thread (for example the 'deleted' tag), the entire thread is shown all the time.
Diffstat (limited to 'vim')
-rw-r--r--vim/notmuch.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index 541698cd..c1c2f63d 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -317,6 +317,9 @@ ruby << EOF
$curbuf.render do |b|
q = $curbuf.query(get_cur_view)
q.sort = Notmuch::SORT_OLDEST_FIRST
+ $exclude_tags.each { |t|
+ q.add_tag_exclude(t)
+ }
msgs = q.search_messages
msgs.each do |msg|
m = Mail.read(msg.filename)