From: Bart Trojanowski Date: Fri, 27 Nov 2009 21:52:00 +0000 (-0500) Subject: vim: primitive reply to message X-Git-Tag: 0.1~313^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e5a25c769240a91b1b5bc5e4349e85ec368b5cfb;p=notmuch.git vim: primitive reply to message --- diff --git a/vim/README b/vim/README index 3965eeb4..a139dfce 100644 --- a/vim/README +++ b/vim/README @@ -69,6 +69,7 @@ Buffer types: c - toggle folding of citations h - toggle folding of extra header lines m - compose a new message + r - reply to the message s - toggle folding of signatures q - return to search display ? - reveal the message and thread IDs of what's under cursor diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 23feb7de..9932e3f1 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -506,7 +506,14 @@ function! s:NM_show_previous_message() endfunction function! s:NM_show_reply() - echo 'not implemented' + let cmd = ['reply'] + call add(cmd, NM_show_message_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_show_view_all_mime_parts()