mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
vim: add option to mark as read + archive
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
c639ffae1e
commit
5a8903f05a
1 changed files with 6 additions and 0 deletions
|
@ -118,6 +118,7 @@ let g:notmuch_search_maps = {
|
||||||
\ '<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>',
|
||||||
\ '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>',
|
||||||
\ 'f': ':call <SID>NM_search_filter()<CR>',
|
\ 'f': ':call <SID>NM_search_filter()<CR>',
|
||||||
\ 'm': ':call <SID>NM_new_mail()<CR>',
|
\ 'm': ':call <SID>NM_new_mail()<CR>',
|
||||||
\ 'o': ':call <SID>NM_search_toggle_order()<CR>',
|
\ 'o': ':call <SID>NM_search_toggle_order()<CR>',
|
||||||
|
@ -310,6 +311,11 @@ function! s:NM_search_archive_thread()
|
||||||
norm j
|
norm j
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! s:NM_search_mark_read_then_archive_thread()
|
||||||
|
call <SID>NM_add_remove_tags([], '-', ['unread', 'inbox'])
|
||||||
|
norm j
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! s:NM_search_filter()
|
function! s:NM_search_filter()
|
||||||
call <SID>NM_search_filter_helper('Filter: ', '', '')
|
call <SID>NM_search_filter_helper('Filter: ', '', '')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in a new issue