diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2010-12-09 21:19:44 +0200 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2011-05-31 17:52:23 -0700 |
commit | 8344c439bf84aa5ead9245108334a99713c384ab (patch) | |
tree | f8bca34317c00dbbb22ec86f4818d7a9582e6192 /vim | |
parent | 06a292018d0fbe3198468571e13e3d230ced3354 (diff) |
vim: add support for delete in search view
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'vim')
-rw-r--r-- | vim/plugin/notmuch.vim | 6 |
1 files changed, 6 insertions, 0 deletions
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 <SID>NM_search_mark_read_thread()<CR>', \ 'a': ':call <SID>NM_search_archive_thread()<CR>', \ 'A': ':call <SID>NM_search_mark_read_then_archive_thread()<CR>', + \ 'D': ':call <SID>NM_search_delete_thread()<CR>', \ 'f': ':call <SID>NM_search_filter()<CR>', \ 'm': ':call <SID>NM_new_mail()<CR>', \ 'o': ':call <SID>NM_search_toggle_order()<CR>', @@ -326,6 +327,11 @@ function! s:NM_search_mark_read_then_archive_thread() norm j endfunction +function! s:NM_search_delete_thread() + call <SID>NM_tag([], ['+delete','-inbox','-unread']) + norm j +endfunction + function! s:NM_search_filter() call <SID>NM_search_filter_helper('Filter: ', '', '') endfunction |