mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
vim: add delete commands
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
8344c439bf
commit
e96741388a
1 changed files with 12 additions and 0 deletions
|
@ -154,6 +154,8 @@ let g:notmuch_show_maps = {
|
||||||
\ 'I': ':call <SID>NM_show_mark_read_thread()<CR>',
|
\ 'I': ':call <SID>NM_show_mark_read_thread()<CR>',
|
||||||
\ 'a': ':call <SID>NM_show_archive_thread()<CR>',
|
\ 'a': ':call <SID>NM_show_archive_thread()<CR>',
|
||||||
\ 'A': ':call <SID>NM_show_mark_read_then_archive_thread()<CR>',
|
\ 'A': ':call <SID>NM_show_mark_read_then_archive_thread()<CR>',
|
||||||
|
\ 'D': ':call <SID>NM_show_delete_thread()<CR>',
|
||||||
|
\ 'd': ':call <SID>NM_show_delete_message()<CR>',
|
||||||
\ 'N': ':call <SID>NM_show_mark_read_then_next_open_message()<CR>',
|
\ 'N': ':call <SID>NM_show_mark_read_then_next_open_message()<CR>',
|
||||||
\ 'v': ':call <SID>NM_show_view_all_mime_parts()<CR>',
|
\ 'v': ':call <SID>NM_show_view_all_mime_parts()<CR>',
|
||||||
\ '+': ':call <SID>NM_show_add_tag()<CR>',
|
\ '+': ':call <SID>NM_show_add_tag()<CR>',
|
||||||
|
@ -524,6 +526,16 @@ function! s:NM_show_mark_read_then_archive_thread()
|
||||||
call <SID>NM_show_next_thread()
|
call <SID>NM_show_next_thread()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! s:NM_show_delete_thread()
|
||||||
|
call <SID>NM_tag(b:nm_search_words, ['+delete', '-inbox', '-unread'])
|
||||||
|
call <SID>NM_show_next_thread()
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:NM_show_delete_message()
|
||||||
|
let msg = <SID>NM_show_get_message_for_line(line('.'))
|
||||||
|
call <SID>NM_tag([msg['id']], ['+delete', '-inbox', '-unread'])
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! s:NM_show_mark_read_then_next_open_message()
|
function! s:NM_show_mark_read_then_next_open_message()
|
||||||
echo 'not implemented'
|
echo 'not implemented'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in a new issue