From: Jules Aguillon Date: Tue, 16 Feb 2021 23:43:15 +0000 (+0100) Subject: Vim: Respect excluded tags when showing a thread X-Git-Tag: archive/debian/0.33_rc0-1~134 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=c3c74621fa8a6ee2f5ca6a06ca1eb32e20227e65 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. --- diff --git a/NEWS b/NEWS index a699b48e..67394e79 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,11 @@ +Notmuch 0.33 (UNRELEASED) +========================= + +Vim +--- + +Respect excluded tags when showing a thread. + Notmuch 0.32 (UNRELEASED) ========================= 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)