mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
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.
This commit is contained in:
parent
8af4cd160a
commit
c3c74621fa
2 changed files with 11 additions and 0 deletions
8
NEWS
8
NEWS
|
@ -1,3 +1,11 @@
|
|||
Notmuch 0.33 (UNRELEASED)
|
||||
=========================
|
||||
|
||||
Vim
|
||||
---
|
||||
|
||||
Respect excluded tags when showing a thread.
|
||||
|
||||
Notmuch 0.32 (UNRELEASED)
|
||||
=========================
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue