From 8344c439bf84aa5ead9245108334a99713c384ab Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Thu, 9 Dec 2010 21:19:44 +0200 Subject: [PATCH] vim: add support for delete in search view 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 fca48568..fee3ed57 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -123,6 +123,7 @@ let g:notmuch_search_maps = { \ 'I': ':call NM_search_mark_read_thread()', \ 'a': ':call NM_search_archive_thread()', \ 'A': ':call NM_search_mark_read_then_archive_thread()', + \ 'D': ':call NM_search_delete_thread()', \ 'f': ':call NM_search_filter()', \ 'm': ':call NM_new_mail()', \ 'o': ':call NM_search_toggle_order()', @@ -326,6 +327,11 @@ function! s:NM_search_mark_read_then_archive_thread() norm j endfunction +function! s:NM_search_delete_thread() + call NM_tag([], ['+delete','-inbox','-unread']) + norm j +endfunction + function! s:NM_search_filter() call NM_search_filter_helper('Filter: ', '', '') endfunction