vim: primitive reply to thread
authorBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 21:48:18 +0000 (16:48 -0500)
committerBart Trojanowski <bart@jukie.net>
Fri, 27 Nov 2009 21:48:52 +0000 (16:48 -0500)
vim/README
vim/plugin/notmuch.vim

index b23288144a1be3f7cec81a34d0f771f39e5546db..3965eeb4175dc7fa10c66020016555e43e0e1b23 100644 (file)
@@ -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
index 37781c0c8bcc9988125e749fb350f9b5310207ef..23feb7de3a5c0603d092bfdd2c3c5f9ce4c8b715 100644 (file)
@@ -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)