mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-17 23:53:15 +01:00
vim: add support to mark as read in search view
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
e236142f03
commit
06a292018d
1 changed files with 6 additions and 0 deletions
|
@ -120,6 +120,7 @@ let g:notmuch_search_maps = {
|
||||||
\ '<Space>': ':call <SID>NM_search_show_thread(0)<CR>',
|
\ '<Space>': ':call <SID>NM_search_show_thread(0)<CR>',
|
||||||
\ '<Enter>': ':call <SID>NM_search_show_thread(1)<CR>',
|
\ '<Enter>': ':call <SID>NM_search_show_thread(1)<CR>',
|
||||||
\ '<C-]>': ':call <SID>NM_search_expand(''<cword>'')<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_archive_thread()<CR>',
|
||||||
\ 'A': ':call <SID>NM_search_mark_read_then_archive_thread()<CR>',
|
\ 'A': ':call <SID>NM_search_mark_read_then_archive_thread()<CR>',
|
||||||
\ 'f': ':call <SID>NM_search_filter()<CR>',
|
\ 'f': ':call <SID>NM_search_filter()<CR>',
|
||||||
|
@ -310,6 +311,11 @@ function! s:NM_search_edit()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! s:NM_search_mark_read_thread()
|
||||||
|
call <SID>NM_tag([], ['-unread'])
|
||||||
|
norm j
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! s:NM_search_archive_thread()
|
function! s:NM_search_archive_thread()
|
||||||
call <SID>NM_tag([], ['-inbox'])
|
call <SID>NM_tag([], ['-inbox'])
|
||||||
norm j
|
norm j
|
||||||
|
|
Loading…
Add table
Reference in a new issue