Discussions of development and use of the Sup email client
 help / color / mirror / Atom feed
From: Roland Groell <roswellrg@gmail.com>
To: supmua <supmua@googlegroups.com>
Subject: Re: [sup] Edit messages in an external editor
Date: Mon, 30 Mar 2015 09:58:43 +0200	[thread overview]
Message-ID: <1427701994-sup-8743@limestone> (raw)
In-Reply-To: <ea-mime-5518fb03-440a-473aa293@www-1.netcourrier.com>

Hi,

> Is it possible to edit a message in an external editor?
> Right now I am editing with vim inside the same terminal window, but for some drafts, I would like to be able to pop out the vim window. These are drafts that I usually edit all week long and send at the end of the week. I know I could just make a draft and it could stay open in a buffer, but I need to have it standing in a desktop by itself, otherwise I just forget to write it...

Using an out-of-terminal editor is possible by using the async-edit
hook. For example my async-edit.rb looks like:

system "gvim #{file_path}"

You then can use E in the reply buffer to edit the message in gvim.

Greetings,
Roland


  reply	other threads:[~2015-03-30  7:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30  7:26 gui-gui
2015-03-30  7:28 ` [sup] Edit messages in an external editor gui-gui
2015-03-30  7:58   ` Roland Groell [this message]
2015-03-30  8:55     ` gui-gui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1427701994-sup-8743@limestone \
    --to=roswellrg@gmail.com \
    --cc=supmua@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox