]> git.notmuchmail.org Git - notmuch/commitdiff
add 's' binding to let you search for different terms
authorBart Trojanowski <bart@jukie.net>
Thu, 19 Nov 2009 02:13:46 +0000 (21:13 -0500)
committerBart Trojanowski <bart@jukie.net>
Wed, 25 Nov 2009 05:48:49 +0000 (00:48 -0500)
vim/plugin/notmuch.vim

index 00ee98427ccca5269eba347f8d1265d02bf11b67..77e3021d6ea2b6a00d78404c4f0de4b88705cdc4 100644 (file)
@@ -47,6 +47,7 @@ function! s:NM_cmd_search(words)
         let b:nm_raw_data = lines
 
         nnoremap <buffer> <Enter> :call <SID>NM_search_display()<CR>
+        nnoremap <buffer> s       :call <SID>NM_cmd_search(split(input('NotMuch Search:')))<CR>
         setlocal cursorline
         setlocal nowrap
 endfunction