Question

I use TextMate to do my HTMl,PHP,JS/Other languages and CSSEdit to do my CSS.

I want to integrate TextMate with Transmit better because at the moment I work like this:

TextMate: Edit code Transmit: Look for folder and drag to online server Firefox: Refresh page Rinse, Repeat.

It feels very clunky to me and I do the same with CSSEdit (although CSSEdit's live preview means that I only have to upload once) but I would like to be able to, on save, have Transmit upload the edited document to the relevant place on the server (given that linked browsing is enabled).

Does anyone have a certain workflow that they follow or macros enabled in TextMate to do such tasks as they would certainly make my life a lot easier, Coda is also an option instead of TextMate if needed.

Being able to have Versions/Git-Tower auto commit on save would be great too.

Was it helpful?

Solution

I recommend @Adam's solution for the uploading part of your question but why are you using Git and Transmit simultaneously? Why not Git for everything?

My workflow:

  • On my machine I keep a Git repository where I do all the work. The working directory is served by MAMP so that I can test my code before commiting anything.
  • When I'm satisfied I commit my latest changes until I think the branch I'm working on is stable.
  • When I'm ready, I push to the server where a post-commit hook checks out the latest version to what the "pre-prod server".
  • When everything has been tested to death, branches merged and so on I check out manually the repository to the "prod server".

No need to use an FTP client at any point, everything is done from the editor (TextMate before, Vim now).

OTHER TIPS

If you set up a site in Transmit, and open the local directory that holds your files, you can activate the Textmate Transmit bundle by typing ctrl-shift-f. Then hit either 1 or 2. 1 will upload the current directory, 2 will send the current file.

You might consider using Transmit's ability to mount FTP servers as volumes and simply edit the files directly on the server. To TextMate the mounted FTP server will appear to be just another volume. Search the help files for Transmit Disk, their name for this feature.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top