aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/plugin/notmuch.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/plugin/notmuch.vim')
-rw-r--r--vim/plugin/notmuch.vim9
1 files changed, 8 insertions, 1 deletions
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)