GNOME Bugzilla – Bug 90594
Implicit user editor spawn on composing
Last modified: 2007-05-23 00:06:49 UTC
I would like to be able to use my editor of choice without having to cleeck zee leetle button everytime I reply or compose a message. Gimme a check box.
I like this idea.
Created attachment 19652 [details] [review] A patch for this; provides a checkbox in the prefs; perhaps a little ghetto :-)
Hmm, patched on 0.14.2. I don't even see the external editor working. This is not fallout, as it doesn't seem to work on vanilla 0.14.2. Why is this? I am calling `gvim %t' and get nothing but a blank file each time. I make changes, but Pan ignores this. Other than that, the patch seems to work(!). In my case, I see the external editor first, and it is instantly covered up by pan's compose window. Perhaps the simple method is to fire the window creation call after the compose window comes on... but I haven't even glanced at the code ;-)
Owen Marshall> I don't even see the external editor working. Same for me: I'm doing the same (gvim %t), and I get a blank file, and Pan ignores changes. Using Pan 0.14.2.91 from Debian sarge. I haven't tried the patch, though.
Probably the editor window should be brought up in an idle function after the post window has been realized, so that the sequencing will be correct...
By default, gvim detaches itself from its controller upon start. You can do `gvim -f %t' to get around this, see if that clears up the blank file issue.
Hi, For OSX users wanting to use TextWrangler or BBEdit natively as your pan2 editor here, insert this line in your posting.xml file inside the <editor> section: <editor active="true">edit -w</editor> Beforehand, be sure to tell TextWrangler or BBEdit to install its imbedded unix tools, this will add the 'edit' command to your system (you only need to do this once). The '-w' is to tell Pan to wait for you to save & close the window (finish editing), then the text will get plopped into the Pan posting window. While you're editing, you can use the spell-check feature and any other gizmos that are available as a normal OSX app. You can open other documents, copy-&-paste between other editor windows & even other apps, etc. etc. etc. One thing that Pan needs here, tho, is to use a separate thread for the posting window, so other things such as downloads can continue on while editing. Thanks... :)