mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
vim: add support to mark as read in show view
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
1a96c4078c
commit
e236142f03
1 changed files with 6 additions and 0 deletions
|
@ -149,6 +149,7 @@ let g:notmuch_show_maps = {
|
|||
\ 'h': ':call <SID>NM_show_fold_toggle(''h'', ''hdr'', !g:notmuch_show_fold_headers)<CR>',
|
||||
\ 'i': ':call <SID>NM_show_fold_toggle(''s'', ''sig'', !g:notmuch_show_fold_signatures)<CR>',
|
||||
\
|
||||
\ 'I': ':call <SID>NM_show_mark_read_thread()<CR>',
|
||||
\ 'a': ':call <SID>NM_show_archive_thread()<CR>',
|
||||
\ 'A': ':call <SID>NM_show_mark_read_then_archive_thread()<CR>',
|
||||
\ 'N': ':call <SID>NM_show_mark_read_then_next_open_message()<CR>',
|
||||
|
@ -496,6 +497,11 @@ function! s:NM_show_next_thread()
|
|||
endif
|
||||
endfunction
|
||||
|
||||
function! s:NM_show_mark_read_thread()
|
||||
call <SID>NM_tag(b:nm_search_words, ['-unread'])
|
||||
call <SID>NM_show_next_thread()
|
||||
endfunction
|
||||
|
||||
function! s:NM_show_archive_thread()
|
||||
call <SID>NM_tag(b:nm_search_words, ['-inbox'])
|
||||
call <SID>NM_show_next_thread()
|
||||
|
|
Loading…
Reference in a new issue