From c3c74621fa8a6ee2f5ca6a06ca1eb32e20227e65 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Wed, 17 Feb 2021 00:43:15 +0100 Subject: [PATCH] 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. --- NEWS | 8 ++++++++ vim/notmuch.vim | 3 +++ 2 files changed, 11 insertions(+) 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) -- 2.43.0