All I want for Christmas is world peace, an end to hunger, and for TextMate to either support (s)ftp or be supportive of the external editor thing. As in this: http://www.merzwaren.com/external_editor.html
I'd become so reliant on Transmit's ability to open a text file in BBEdit, where I could just sit 'save' and have it upload automatically, that having to do it by hand again is really getting up my nose.
For the moment, can anyone recommend a way to get around this lack of support? I still have BBEdit, of course, but I'd rather be using TextMate. I'm not so good with shell scripting so I wouldn't know the first place to start where that's concerned.
Can anyone help?
Regards, Raena
On 25. Oct 2004, at 18:52, Raena Armitage wrote:
All I want for Christmas is world peace, an end to hunger, and for TextMate to either support (s)ftp or be supportive of the external editor thing. As in this:
I've played a bit with native (s)ftp support, so it won't take long -- though it won't be rolled into the main branch before I re-write the current project drawer, and I'm still not entirely settled on how to best handle this one.
I've also played shortly with this, I was actually awaiting six lines of code that Jonas mentioned on his blog, but it seems he's forgotten about me, so I should probably continue my own work instead...
Apple Events (especially catching the 'odoc' event) are not exactly nice from Cocoa applications, and it seems Transmit only supports a hardcoded list of editors, so I can't even test TextMate with their program (and a 'file' can have several "representations" when sent as an apple event, so testing is rather crucial).
For the moment, can anyone recommend a way to get around this lack of support?
I hear that Interarchy has the ability to mount an (s)ftp disk, similar to the Finder, but with write-support.
So hopefully that can serve until I get ftp done!
Kind regards Allan
Allan Odgaard wrote:
I've also played shortly with this, I was actually awaiting six lines of code that Jonas mentioned on his blog, but it seems he's forgotten about me, so I should probably continue my own work instead...
Hmm, I sent it to allan@macromates.com. Strange. It's actually a bit more, if you don't have AE receivers setup, yet. But you're right, unless Transmit adds TextMate as an editor, it's pretty much moot.
Apple Events (especially catching the 'odoc' event) are not exactly nice from Cocoa applications, and it seems Transmit only supports a hardcoded list of editors, so I can't even test TextMate with their program (and a 'file' can have several "representations" when sent as an apple event, so testing is rather crucial).
Agreed. Contacting Adriaan Tijselling, whose ecto supports odoc, as well, might be another idea.
I hear that Interarchy has the ability to mount an (s)ftp disk, similar to the Finder, but with write-support.
Unfortunately, WebDAV sucks executable bits, otherwise that's another way to go.
jonas
On 25. Oct 2004, at 23:32, Jonas M Luster wrote:
I've also played shortly with this, I was actually awaiting six lines of code that Jonas mentioned on his blog, but it seems he's forgotten about me, so I should probably continue my own work instead...
Hmm, I sent it to allan@macromates.com. Strange.
Yes, that's weird -- TextDrive have had a bit of downtime the last couple of days, but not more than at most an hour at a time AFAIK, maybe the SMTP just caught TextDrive at that time, and will resend!?!
But I'd be glad if you'd resend the code, probably to allan@simplit.com then ;) Mainly I got stuck extracting the alias from the apple event and converting it to something useful -- but I'm not sure if the file is always an alias, or can also be an FSRef or a plain text string/URL. There seems to be quite a few types for files defined for apple events.
Also, I didn't look into actually sending back events to the sender, there seems to be no cocoa support for this, so I'd have to dig into Carbon documentation, which means, any sample code would be much appreciated, as I'd save me time (and probably frustrations, given my history with legacy Apple APIs ;) ).
It's actually a bit more, if you don't have AE receivers setup, yet.
Setting up an AE receiver for odoc doesn't really help, because NSApplication won't pass on the event, to the best of my attempts at least -- but I can peek at the current apple event in one of the application delegate methods to open files, this seems to be the solution -- it's still a bit weird, cause it seems to depend a bit on from whom the event is sent, how NSApplication treats it (i.e. I can have the event received by a custom handler if I send it from Script Editor, although never the first event ("naturally")).
But you're right, unless Transmit adds TextMate as an editor, it's pretty much moot.
I also downloaded Interachy (sp?) and at least they allow the user to add other editors to the list. Probably some of the other ftp clients for the Mac does that as well.
Kind regards Allan
Allan Odgaard wrote:
Yes, that's weird -- TextDrive have had a bit of downtime the last couple of days, but not more than at most an hour at a time AFAIK, maybe the SMTP just caught TextDrive at that time, and will resend!?!
I'm kicking the email server as we speak. It seems to be an issue on my end. The code is at home, will send tonight. In the meantime, did you look at Fugu? The source is at http://rsug.itd.umich.edu/software/fugu/ and it does support External Editors. Might be worth a shot.
then ;) Mainly I got stuck extracting the alias from the apple event and converting it to something useful -- but I'm not sure if the file is always an alias, or can also be an FSRef or a plain text string/URL. There seems to be quite a few types for files defined for apple events.
If I read the docs correctly, it's an alias. I need to dig deeper into the Fugu code, I guess.
appreciated, as I'd save me time (and probably frustrations, given my history with legacy Apple APIs ;) ).
I'll see what I have on that part.
I also downloaded Interachy (sp?) and at least they allow the user to add other editors to the list. Probably some of the other ftp clients for the Mac does that as well.
Well, Fugu is source, so I can hack it :)
jonas
On 26 Oct 2004, at 9:40 am, Allan Odgaard wrote:
But you're right, unless Transmit adds TextMate as an editor, it's pretty much moot.
I also downloaded Interachy (sp?) and at least they allow the user to add other editors to the list. Probably some of the other ftp clients for the Mac does that as well.
Yeah, I'd be happy to switch to Interarchy if it meant I could use the external editor thing. It did in fact download and open the file in TextMate, which is still nice. I've also been toying with its Auto Upload thing.
Thanks for the hints, guys!
Yummy FTP allows you to pick an external editor.... http://www.macupdate.com/info.php/id/15998
By the way, Yummy FTP is actually quite nice!
-Noel
I'm sure if you talked to the developer of transmit, he'd add TextMate for you in a heartbeat.
-Noel
On Oct 25, 2004, at 5:32 PM, Jonas M Luster wrote:
But you're right, unless Transmit adds TextMate as an editor, it's pretty much moot.
---------------------- noel@noeljackson.com http://noeljackson.com http://relevantly.com ----------------------
On 27. Oct 2004, at 21:57, Noel Jackson wrote:
I'm sure if you talked to the developer of transmit, he'd add TextMate for you in a heartbeat.
I actually wrote them last week to learn if their list of "good" editors were kept in a plist or similar -- but they haven't replied yet.
Kind regards Allan
On 28/10/2004, at 7:00 AM, Allan Odgaard wrote:
On 27. Oct 2004, at 21:57, Noel Jackson wrote:
I'm sure if you talked to the developer of transmit, he'd add TextMate for you in a heartbeat.
I actually wrote them last week to learn if their list of "good" editors were kept in a plist or similar -- but they haven't replied yet.
Panic replied to me on the same topic a while back...
--- All of the text editors in Transmit's pop-up are special -- they all support a special suite of AppleEvents, so that when you choose "Save" in the text editor, it automatically launches Transmit and uploads the file to the right location.
As more text editors support this, we'll add them.
In the meantime, of course any text editor works with Transmit -- but they won't launch from _within_ Transmit. ---
So, support what they need supported, then let them know so they can add it, I guess.
Justin
On 10/27/04 7:52 PM, "Justin French" justin.french@indent.com.au wrote:
All of the text editors in Transmit's pop-up are special -- they all support a special suite of AppleEvents, so that when you choose "Save" in the text editor, it automatically launches Transmit and uploads the file to the right location.
This sounds similar to Interarchy's "Edit with..." feature. This is a perfect opportunity for me to ask for that again. :-D Pretty please with sugar on top. Here are the details for that again:
------ Forwarded Message From: Peter N Lewis peter@stairways.com.au Date: Thu, 7 Oct 2004 10:06:08 +0800 To: Simon Dorfman Simon@SimonDorfman.com Subject: Re: Edit with... TextMate
I want to ask the developer of a new text editor (TextMate macromates.com) to support your "Edit with..." feature. What does he need to know to make it jive with Interarchy?
The details are at:
http://www.merzwaren.com/external_editor.html
and Bare Bones' original specification is at: http://www.barebones.com/support/developer/odbsuite.html
If they drop me a line when it is implemented we'll be happy to add TexMate to our list of possible editors.
Enjoy, Peter.
-- http://www.stairways.com/ http://download.stairways.com/
------ End of Forwarded Message
On 28.10.2004, at 06:35, Simon Dorfman wrote:
On 10/27/04 7:52 PM, "Justin French" justin.french@indent.com.au wrote:
All of the text editors in Transmit's pop-up are special -- they all support a special suite of AppleEvents, so that when you choose "Save" in the text editor, it automatically launches Transmit and uploads the file to the right location.
I tested out YummyFTP (that someone mentioned on this list) and it looks really slick. I just selected TextMate as the external editor and opening and saving directly from/to sftp server works fine, without any API or AppleEvents compliance from the TextMate side.
If you need that functionality right now, go ahead and test it (it's in Versiontracker), it's definitely worth a try. Unfortunately the free (fully functional) demo only works for seven days so the buying decision has to be made quite fast.
//jarkko
-- Jarkko Laine http://jlaine.net
indeed it does. how in the hell did I miss that??? blasphemy I say. perhaps the other FTP clients could learn from this?
On Oct 28, 2004, at 5:12 AM, Jarkko Laine wrote:
I tested out YummyFTP (that someone mentioned on this list) and it looks really slick. I just selected TextMate as the external editor and opening and saving directly from/to sftp server works fine, without any API or AppleEvents compliance from the TextMate side.
If you need that functionality right now, go ahead and test it (it's in Versiontracker), it's definitely worth a try. Unfortunately the free (fully functional) demo only works for seven days so the buying decision has to be made quite fast.
---------------------- noel@noeljackson.com http://noeljackson.com http://relevantly.com ----------------------
As long as you're playing with the 'odoc' AppleEvent, please consider (as previously mentioned in http://one.textdrive.com/pipermail/textmate/2004-October/000547.html) supporting the keyAEPosition parameter as detailed here:
<http://www.codingmonkeys.de/techpubs/externaleditor/ pbxexternaleditor.html>
This is a blocker for anyone trying to use TextMate as external editor for either Xcode or CodeWarrior.
Thanks, Chris
On Oct 25, 2004, at 1:51 PM, Allan Odgaard wrote:
I've also played shortly with this, I was actually awaiting six lines of code that Jonas mentioned on his blog, but it seems he's forgotten about me, so I should probably continue my own work instead...
Apple Events (especially catching the 'odoc' event) are not exactly nice from Cocoa applications, and it seems Transmit only supports a hardcoded list of editors, so I can't even test TextMate with their program (and a 'file' can have several "representations" when sent as an apple event, so testing is rather crucial).
As long as you're playing with the 'odoc' AppleEvent, please consider (as previously mentioned in http://one.textdrive.com/pipermail/textmate/2004-October/000547.html) supporting the keyAEPosition parameter as detailed here:
<http://www.codingmonkeys.de/techpubs/externaleditor/ pbxexternaleditor.html>
This is a blocker for anyone trying to use TextMate as external editor for either Xcode or CodeWarrior.
Thanks, Chris
On Oct 25, 2004, at 1:51 PM, Allan Odgaard wrote:
I've also played shortly with this, I was actually awaiting six lines of code that Jonas mentioned on his blog, but it seems he's forgotten about me, so I should probably continue my own work instead...
Apple Events (especially catching the 'odoc' event) are not exactly nice from Cocoa applications, and it seems Transmit only supports a hardcoded list of editors, so I can't even test TextMate with their program (and a 'file' can have several "representations" when sent as an apple event, so testing is rather crucial).
it's not exactly a "workaround" to editing remote files on a server, but our dev team here is setup with rsync which is much much easier.
In TextMate, I just have a command (tied to a Key) that saves all files in my project and syncs my ~/Sites directory with the dev server's ~/public_html It runs a script that looks like this:
#!/bin/sh
rsync -auv --delete ~/Sites kumar@dev:~/public_html
and voila, only modified files are uploaded. The other developers on our team do this in Emacs on Linux but TextMate has the Key command option which is nice. The rsync method is more useful to me than command-J'ing files from Transmit into BBEdit or SubEtha.
While I'm at it... here is my vote for making Subversion/CVS integration a higher priority than sftp! It is a little trickier to do cvs/svn commands in TextMate currently.
k
On Oct 26, 2004, at 1:40 PM, Chris Thomas wrote:
As long as you're playing with the 'odoc' AppleEvent, please consider (as previously mentioned in <http://one.textdrive.com/pipermail/textmate/2004-October/ 000547.html>) supporting the keyAEPosition parameter as detailed here:
<http://www.codingmonkeys.de/techpubs/externaleditor/ pbxexternaleditor.html>
This is a blocker for anyone trying to use TextMate as external editor for either Xcode or CodeWarrior.
Thanks, Chris
On Oct 25, 2004, at 1:51 PM, Allan Odgaard wrote:
I've also played shortly with this, I was actually awaiting six lines of code that Jonas mentioned on his blog, but it seems he's forgotten about me, so I should probably continue my own work instead...
Apple Events (especially catching the 'odoc' event) are not exactly nice from Cocoa applications, and it seems Transmit only supports a hardcoded list of editors, so I can't even test TextMate with their program (and a 'file' can have several "representations" when sent as an apple event, so testing is rather crucial).
As long as you're playing with the 'odoc' AppleEvent, please consider (as previously mentioned in <http://one.textdrive.com/pipermail/textmate/2004-October/ 000547.html>) supporting the keyAEPosition parameter as detailed here:
<http://www.codingmonkeys.de/techpubs/externaleditor/ pbxexternaleditor.html>
This is a blocker for anyone trying to use TextMate as external editor for either Xcode or CodeWarrior.
Thanks, Chris
On Oct 25, 2004, at 1:51 PM, Allan Odgaard wrote:
I've also played shortly with this, I was actually awaiting six lines of code that Jonas mentioned on his blog, but it seems he's forgotten about me, so I should probably continue my own work instead...
Apple Events (especially catching the 'odoc' event) are not exactly nice from Cocoa applications, and it seems Transmit only supports a hardcoded list of editors, so I can't even test TextMate with their program (and a 'file' can have several "representations" when sent as an apple event, so testing is rather crucial).
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
On 26. Oct 2004, at 20:40, Chris Thomas wrote:
As long as you're playing with the 'odoc' AppleEvent, please consider (as previously mentioned in <http://one.textdrive.com/pipermail/textmate/2004-October/ 000547.html>) supporting the keyAEPosition parameter as detailed here: [...]
I've added support for this event, but it is not sent by Xcode.
Do you know if Xcode only sends it to known “good” applications?
It does make a difference in the UI, listing only SEE and Emacs as supported editors, and the rest as “limited support”.
Kind regards Allan
On 2. Nov 2004, at 3:24, Allan Odgaard wrote:
I've added support for [ keyAEPosition ] Do you know if Xcode only sends it to known “good” applications?
My bad, it does send the event, just not from the normal UI, but instead from the error and find panels (and the event is not a list of positions, as the other ftp events, so apparently this can only be used with one file at a time).
And interestingly, with my current approach to grabbing the 'odoc' event, I _do_ get the position, even when this is the startup event, unlike with the ftp events, which are lost if TextMate is not already running (although I have only tried with Interarchy, it probably depends on how the event is sent -- though extra weird is that Interarchy sends multiple events when multiple files are selected (instead of using lists), and the extra parameters are gone for all the events)...