Code Like Zell

Edit through FTP with TextMate and Cyberduck

I do a bit of freelance php work where I need to edit files through FTP. Textmate does not support this very well out of the box, and at first it seemed like I would have to open and edit each file in its own window. But by combining this tip by subtlegradient with this tip by ciaranwal.sh we can use tabbed editing, project drawer, and cmd+t to switch files. The steps:

1. In Cyberduck’s preferences make sure external editor is set to TextMate. Also, it helps if “Double click opens file in external editor” is set to true.

2. Open up a file from your FTP project that is close to the top level directory of your project, you’ll see why in a minute.

3. In the TextMate window that popped up, hit ctrl+shift+o (Bundles > Shell Script > Open Terminal). The terminal will open at the temporary location where the file you are editing is.

4. cd .. back to the top level directory of your project and enter: mate .

Now any subsequent files you open using Cyberduck will be added as tabs in the current TextMate project.


3 Comments

Good post.

Posted by Kirra on 29 October 2008 @ 7am

this is a great post. my favorite part about it is that it is a neat trick. i would like to thank google for directing my need for this solution to this wonderfully informative post. please keep up the good work. merry christmas, i mean, happy holidays.

Posted by Justin on 2 December 2008 @ 8pm

Thanks guys, happy to help.

Posted by Lou on 3 December 2008 @ 9pm

Leave a Comment

GoLark Mobile