[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-devel] editing messages outside of sup



Hello

It is often useful to be able to look at messages while writing a message.
While I can exit my editor and look at other messages, and then come back to 
my editor, it would be nice to have both open at the same time. So I've
written some code that allows you to do that. When you are in
compose-mode/reply-mode/etc you can press 'E' and it will transform into
a buffer showing a file path of the file to edit, and a key to press ('E'
again) to say you've finished.

So you can open the file in another editor, whether on your desktop, in 
another terminal, in a screen session split so you can see both, or whatever.
While editing you can still navigate around sup's buffers and copy text,
email addresses etc into your editor and so on.

Then when you're done, you can exit the editor, navigate back to the edit
buffer and press 'E' to go back to normal edit-message-mode and carry on as
normal. 

As part of this, I've created a way to hide the original buffer. I think
I handle buffer killing properly in the various states (file still being
edited, file saved etc), but someone will doubtless find an edge case
...

For the moment this work is in the async_message_edit branch. If no one
shouts about this being a terrible idea then I'll merge it into next
within a week.

Hamish Downer
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel