vim: make it possible to start a search in show mode
authorBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 22:43:01 +0000 (17:43 -0500)
committerBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 22:43:01 +0000 (17:43 -0500)
vim/README
vim/plugin/notmuch.vim

index a139dfce1eedbe206252ddffb8fd0fc043fc5ef0..299c7f8944d8980651a1fa3bc7b447a21cbe5c09 100644 (file)
@@ -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
index cb7f34f5e2e14985ecea8403e9c574f40d9245ce..c5655617c862fcbd6da463c58fc0b3397ee4de08 100644 (file)
@@ -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>',