aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim
diff options
context:
space:
mode:
authorGravatar Felipe Contreras <felipe.contreras@gmail.com>2010-12-09 21:15:43 +0200
committerGravatar Jameson Graef Rollins <jrollins@finestructure.net>2011-05-31 17:52:23 -0700
commit06a292018d0fbe3198468571e13e3d230ced3354 (patch)
tree3b15101468600b2bad98c3a1eec48db0b2a16058 /vim
parente236142f039c1a77ec2a40853cec102681b33adb (diff)
vim: add support to mark as read in search view
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'vim')
-rw-r--r--vim/plugin/notmuch.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim
index 05c21d3c..fca48568 100644
--- a/vim/plugin/notmuch.vim
+++ b/vim/plugin/notmuch.vim
@@ -120,6 +120,7 @@ let g:notmuch_search_maps = {
\ '<Space>': ':call <SID>NM_search_show_thread(0)<CR>',
\ '<Enter>': ':call <SID>NM_search_show_thread(1)<CR>',
\ '<C-]>': ':call <SID>NM_search_expand(''<cword>'')<CR>',
+ \ '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>',
\ 'f': ':call <SID>NM_search_filter()<CR>',
@@ -310,6 +311,11 @@ function! s:NM_search_edit()
endif
endfunction
+function! s:NM_search_mark_read_thread()
+ call <SID>NM_tag([], ['-unread'])
+ norm j
+endfunction
+
function! s:NM_search_archive_thread()
call <SID>NM_tag([], ['-inbox'])
norm j