diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 05c21d3c..fca48568 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -120,6 +120,7 @@ let g:notmuch_search_maps = { \ '': ':call NM_search_show_thread(0)', \ '': ':call NM_search_show_thread(1)', \ '': ':call NM_search_expand('''')', + \ 'I': ':call NM_search_mark_read_thread()', \ 'a': ':call NM_search_archive_thread()', \ 'A': ':call NM_search_mark_read_then_archive_thread()', \ 'f': ':call NM_search_filter()', @@ -310,6 +311,11 @@ function! s:NM_search_edit() endif endfunction +function! s:NM_search_mark_read_thread() + call NM_tag([], ['-unread']) + norm j +endfunction + function! s:NM_search_archive_thread() call NM_tag([], ['-inbox']) norm j