From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.224.197 with SMTP id ip5cs145749icb; Sun, 20 Feb 2011 14:03:07 -0800 (PST) Received: by 10.220.177.203 with SMTP id bj11mr141468vcb.18.1298239386672; Sun, 20 Feb 2011 14:03:06 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id r11si6691300vch.73.2011.02.20.14.03.06; Sun, 20 Feb 2011 14:03:06 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 52AE83C8039; Sun, 20 Feb 2011 17:03:06 -0500 (EST) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by rubyforge.org (Postfix) with ESMTP id 8D7F51858357 for ; Sun, 20 Feb 2011 17:02:59 -0500 (EST) Received: by wwb31 with SMTP id 31so5592222wwb.23 for ; Sun, 20 Feb 2011 14:02:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:subject:from:to:date:message-id :user-agent:content-transfer-encoding; bh=NBp8a6X8c/dfejgxZc0DVhSWIOFYuEAYn2SHzaXPkus=; b=Aqr85JYnQ4DhTf8nTimaxeXJE17oxxlcBZXW4gQORm9ySOggymaTgAiRipOUceVz3W x7AiuA36rD+HOHoEbazIky+pKiXB8TSXw+FafCoEG6yOxgLUFiAu67sj0hKDtD4uWns4 d9Bjn8Y0KhL6GYs0hMKpD+vHxB6qliMDBWKMM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:subject:from:to:date:message-id:user-agent :content-transfer-encoding; b=LuoqjcDWmJyko/gxB9oyjKYeMwIXt02EBNp8cGeMQbuaBVub7hCnOYJQgc6GOnW2yc aswip43T98XlwreS9O+tC9/OzboNM6s6pMPmVC8l8yBiSftt1gk+VO6ZAxBeSgnc0qW7 Q5qA+if+ybrLBmV52D0sHOzW+5bz5opkACpOY= Received: by 10.216.54.199 with SMTP id i49mr1423264wec.63.1298239378876; Sun, 20 Feb 2011 14:02:58 -0800 (PST) Received: from localhost (cpc12-cmbg15-2-0-cust81.5-4.cable.virginmedia.com [86.30.247.82]) by mx.google.com with ESMTPS id s50sm1798196weh.46.2011.02.20.14.02.56 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Feb 2011 14:02:58 -0800 (PST) From: Hamish To: sup-devel Date: Sun, 20 Feb 2011 22:02:54 +0000 Message-Id: <1298239068-sup-6985@whisper> User-Agent: Sup/git Subject: [sup-devel] editing messages outside of sup X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org 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