From 5a8903f05a10a9d010ca4d7302a58cd6520a112d Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Sat, 5 Jun 2010 14:12:39 +0300 Subject: [PATCH] vim: add option to mark as read + archive Signed-off-by: Felipe Contreras --- vim/plugin/notmuch.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 01ee10f8..968c4c16 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -118,6 +118,7 @@ let g:notmuch_search_maps = { \ '': ':call NM_search_show_thread(1)', \ '': ':call NM_search_expand('''')', \ 'a': ':call NM_search_archive_thread()', + \ 'A': ':call NM_search_mark_read_then_archive_thread()', \ 'f': ':call NM_search_filter()', \ 'm': ':call NM_new_mail()', \ 'o': ':call NM_search_toggle_order()', @@ -310,6 +311,11 @@ function! s:NM_search_archive_thread() norm j endfunction +function! s:NM_search_mark_read_then_archive_thread() + call NM_add_remove_tags([], '-', ['unread', 'inbox']) + norm j +endfunction + function! s:NM_search_filter() call NM_search_filter_helper('Filter: ', '', '') endfunction -- 2.43.0