From: Felipe Contreras Date: Sat, 5 Jun 2010 11:12:39 +0000 (+0300) Subject: vim: add option to mark as read + archive X-Git-Tag: 0.5~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a8903f05a10a9d010ca4d7302a58cd6520a112d;p=notmuch.git vim: add option to mark as read + archive Signed-off-by: Felipe Contreras --- 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