aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim
diff options
context:
space:
mode:
authorGravatar Bart Trojanowski <bart@jukie.net>2009-11-27 16:48:18 -0500
committerGravatar Bart Trojanowski <bart@jukie.net>2009-11-27 16:48:52 -0500
commitab3ce6196ee32ce19626d6f11bc3763dd13bce66 (patch)
tree7aa28780240d50dc26bd482768a1e7c6057f8736 /vim
parent0ef04e14ffac768b211510fab5b351cfab38b6ee (diff)
vim: primitive reply to thread
Diffstat (limited to 'vim')
-rw-r--r--vim/README1
-rw-r--r--vim/plugin/notmuch.vim9
2 files changed, 9 insertions, 1 deletions
diff --git a/vim/README b/vim/README
index b2328814..3965eeb4 100644
--- a/vim/README
+++ b/vim/README
@@ -47,6 +47,7 @@ Buffer types:
f - filter the current search terms
o - toggle search screen order
m - compose a new message
+ r - reply to thread
s - enter search criteria
,s - alter search criteria
t - filter the current search terms with tags
diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim
index 37781c0c..23feb7de 100644
--- a/vim/plugin/notmuch.vim
+++ b/vim/plugin/notmuch.vim
@@ -347,7 +347,14 @@ function! s:NM_search_toggle_order()
endfunction
function! s:NM_search_reply_to_thread()
- echo 'not implemented'
+ let cmd = ['reply']
+ call add(cmd, <SID>NM_search_thread_id())
+ call add(cmd, 'AND')
+ call extend(cmd, <SID>NM_get_search_words())
+
+ let data = <SID>NM_run(cmd)
+ let lines = split(data, "\n")
+ call <SID>NM_newComposeBuffer(lines, 0)
endfunction
function! s:NM_search_add_tags(tags)