From ab3ce6196ee32ce19626d6f11bc3763dd13bce66 Mon Sep 17 00:00:00 2001 From: Bart Trojanowski Date: Fri, 27 Nov 2009 16:48:18 -0500 Subject: vim: primitive reply to thread --- vim/plugin/notmuch.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'vim/plugin') 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, NM_search_thread_id()) + call add(cmd, 'AND') + call extend(cmd, NM_get_search_words()) + + let data = NM_run(cmd) + let lines = split(data, "\n") + call NM_newComposeBuffer(lines, 0) endfunction function! s:NM_search_add_tags(tags) -- cgit v1.2.3