From 16a00de92421e1397e5089d9e9f41b44f4f51c22 Mon Sep 17 00:00:00 2001 From: Bart Trojanowski <bart@jukie.net> Date: Fri, 27 Nov 2009 17:43:01 -0500 Subject: [PATCH] vim: make it possible to start a search in show mode --- vim/README | 3 ++- vim/plugin/notmuch.vim | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vim/README b/vim/README index a139dfce..299c7f89 100644 --- a/vim/README +++ b/vim/README @@ -68,9 +68,10 @@ Buffer types: b - toggle folding of message bodies c - toggle folding of citations h - toggle folding of extra header lines + i - toggle folding of signatures m - compose a new message r - reply to the message - s - toggle folding of signatures + s - enter search criteria q - return to search display ? - reveal the message and thread IDs of what's under cursor ^] - search using word under cursor diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index cb7f34f5..c5655617 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -137,11 +137,12 @@ let g:notmuch_show_maps = { \ '<C-N>': ':call <SID>NM_show_next(1, 0)<CR>', \ '<C-]>': ':call <SID>NM_search_expand(''<cword>'')<CR>', \ 'q': ':call <SID>NM_kill_this_buffer()<CR>', + \ 's': ':call <SID>NM_search_prompt()<CR>', \ \ 'b': ':call <SID>NM_show_fold_toggle(''b'', ''bdy'', !g:notmuch_show_fold_bodies)<CR>', \ 'c': ':call <SID>NM_show_fold_toggle(''c'', ''cit'', !g:notmuch_show_fold_citations)<CR>', \ 'h': ':call <SID>NM_show_fold_toggle(''h'', ''hdr'', !g:notmuch_show_fold_headers)<CR>', - \ 's': ':call <SID>NM_show_fold_toggle(''s'', ''sig'', !g:notmuch_show_fold_signatures)<CR>', + \ 'i': ':call <SID>NM_show_fold_toggle(''s'', ''sig'', !g:notmuch_show_fold_signatures)<CR>', \ \ 'a': ':call <SID>NM_show_archive_thread()<CR>', \ 'A': ':call <SID>NM_show_mark_read_then_archive_thread()<CR>', -- 2.45.2