]> git.cworth.org Git - notmuch/commitdiff
Vim: Respect excluded tags when showing a thread
authorJules Aguillon <juloo.dsi@gmail.com>
Tue, 16 Feb 2021 23:43:15 +0000 (00:43 +0100)
committerDavid Bremner <david@tethera.net>
Mon, 26 Apr 2021 23:16:12 +0000 (20:16 -0300)
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.

NEWS
vim/notmuch.vim

diff --git a/NEWS b/NEWS
index a699b48e42c4165c5c52a32a71446529f8e76d39..67394e794f93c1b74a0ef31b43415c51b70ffeaa 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,11 @@
+Notmuch 0.33 (UNRELEASED)
+=========================
+
+Vim
+---
+
+Respect excluded tags when showing a thread.
+
 Notmuch 0.32 (UNRELEASED)
 =========================
 
index 541698cdfee7939e05aa3554ff39c91295920940..c1c2f63d20178dab69f92c9ff9aab4631dda6ee5 100644 (file)
@@ -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)