X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=vim%2Fplugin%2Fnotmuch.vim;fp=vim%2Fplugin%2Fnotmuch.vim;h=05c21d3cead8af05305b4e01aed52f25ba13fcfe;hp=98ddb00ec46aa6b676c9254c958eb9394fc09f57;hb=e236142f039c1a77ec2a40853cec102681b33adb;hpb=1a96c4078cd24ac51788f07fb0e2e745dc680681 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 98ddb00e..05c21d3c 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -149,6 +149,7 @@ let g:notmuch_show_maps = { \ 'h': ':call NM_show_fold_toggle(''h'', ''hdr'', !g:notmuch_show_fold_headers)', \ 'i': ':call NM_show_fold_toggle(''s'', ''sig'', !g:notmuch_show_fold_signatures)', \ + \ 'I': ':call NM_show_mark_read_thread()', \ 'a': ':call NM_show_archive_thread()', \ 'A': ':call NM_show_mark_read_then_archive_thread()', \ 'N': ':call NM_show_mark_read_then_next_open_message()', @@ -496,6 +497,11 @@ function! s:NM_show_next_thread() endif endfunction +function! s:NM_show_mark_read_thread() + call NM_tag(b:nm_search_words, ['-unread']) + call NM_show_next_thread() +endfunction + function! s:NM_show_archive_thread() call NM_tag(b:nm_search_words, ['-inbox']) call NM_show_next_thread()