diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2010-06-17 01:38:47 +0300 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2011-05-31 17:52:23 -0700 |
commit | e236142f039c1a77ec2a40853cec102681b33adb (patch) | |
tree | 64999560c5e24cce55fcbda2a16e6c240019c41d /vim | |
parent | 1a96c4078cd24ac51788f07fb0e2e745dc680681 (diff) |
vim: add support to mark as read in show 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 98ddb00e..05c21d3c 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -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() |