Some frequent discussion topics on this list are:
1. How do I use TextMate's cool project features when my directory is on some other machine? Or…
2. I've created a TextMate project out of a directory on some other machine, but now Subversion is broken. Or the extremely common…
3. I've created a TextMate project out of a directory on some other machine, but every time I switch to TextMate, there's this huge delay.
I've had all of these problems myself and have developed a bundle to work around them.
http://kendra.oit.gatech.edu/remote_project_bundle.zip
The intro in the bundle's documentation sums it up nicely:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
## About This Bundle
### The Problem
You want to work with files in a TextMate project on the local filesystem (for speed, Subversion compatibility, and other reasons), but the files you're working on are useless unless they're on some remote machine. This is most common with web based projects where the code only works on a sever that has been configured in a particular way.
### Who This Bundle Is For
This bundle is meant to support a workflow where all (or almost all) changes are made locally using TextMate, while all (or almost all) viewing/running/testing of those changes will be done on a remote machine (such as a web server).
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
For more details, run the bundle's Help command. If anyone uses this, send suggestions to me or to the list. I'd like to go through a couple of feedback and improvement cycles before submitting it for consideration as an "official" bundle. Thanks.
--- Rob McBroom http://www.skurfer.com/ I didn't "switch" to Apple... my OS did.
I'm really glad someone has finally tried to solve this. Now if we could only get a super-simple ftp option instead of relying on ssh… <hint, hint> ;)
On Oct 11, 2007, at 2:44 PM, Rob McBroom wrote:
I've had all of these problems myself and have developed a bundle to work around them.
For more details, run the bundle's Help command. If anyone uses this, send suggestions to me or to the list. I'd like to go through a couple of feedback and improvement cycles before submitting it for consideration as an "official" bundle. Thanks.
Rob McBroom http://www.skurfer.com/ I didn't "switch" to Apple... my OS did.
On Oct 11, 2007, at 3:49 PM, Thomas Aylott wrote:
I'm really glad someone has finally tried to solve this. Now if we could only get a super-simple ftp option instead of relying on ssh… <hint, hint> ;)
rsync was originally built to run over RSH, so you could use that instead. :) And I noted this in the documentation, but rsync can work with two local directories (or any two directories that *appear* to be local), so you could always mount a remote filesystem via AFP or NFS and sync them that way.
Is there an easy way to recursively transfer things via FTP? And does it transfer the whole directory every time? That would probably be pretty slow.
The Finder lets you "mount" things via FTP. If it looks enough like a real filesystem (and that's a big "if"), then you could probably use rsync between a local directory and a directory mounted via FTP.
--- Rob McBroom http://www.skurfer.com/ I didn't "switch" to Apple... my OS did.
Finder still mounts FTP read only. I think fuse would work, but that's hardly a simple solution. I guess panic transmit would have to be good enough.
I have a few commands that FTP for a few standard projects I use all the time. It'd prolly be a wee bit slow and difficult to make a good ftp sync system inside textmate. Hence there being so many shareware FTP apps I suppose. ;)
Thomas Aylott [SubtleGradient] from iPhone
On Oct 12, 2007, at 10:21 AM, Rob McBroom textmate@skurfer.com wrote:
On Oct 11, 2007, at 3:49 PM, Thomas Aylott wrote:
I'm really glad someone has finally tried to solve this. Now if we could only get a super-simple ftp option instead of relying on ssh… <hint, hint> ;)
rsync was originally built to run over RSH, so you could use that instead. :) And I noted this in the documentation, but rsync can work with two local directories (or any two directories that *appear* to be local), so you could always mount a remote filesystem via AFP or NFS and sync them that way.
Is there an easy way to recursively transfer things via FTP? And does it transfer the whole directory every time? That would probably be pretty slow.
The Finder lets you "mount" things via FTP. If it looks enough like a real filesystem (and that's a big "if"), then you could probably use rsync between a local directory and a directory mounted via FTP.
Rob McBroom http://www.skurfer.com/ I didn't "switch" to Apple... my OS did.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 10/12/07, Thomas Aylott textmate@subtlegradient.com wrote:
Finder still mounts FTP read only. I think fuse would work, but that's hardly a simple solution. I guess panic transmit would have to be good enough.
I've had better luck with MacFuse+sshfs using the command line (sshsf ~/local ssh://remote) then the MacFuse GUI. The MacFuse GUI just sucks resources out of the whole process, but sshsf itself works great.
On 11 Oct 2007, at 19:44, Rob McBroom wrote:
For more details, run the bundle's Help command. If anyone uses this, send suggestions to me or to the list. I'd like to go through a couple of feedback and improvement cycles before submitting it for consideration as an "official" bundle. Thanks.
Hi Rob,
I’ve not used the bundle, but I just read over the help and it seems like the process of fetching a remote project could be greatly simplified if the “Get Remote Project” command created the project directory and set the environment variable for you. You could request a location to save the project to (using CocoaDialog?), and then rsync the files to it, and then create a .textmate_init file to set up the environment variable.
On Oct 11, 2007, at 2:44 PM, Rob McBroom wrote:
If anyone uses this, send suggestions to me or to the list. I'd like to go through a couple of feedback and improvement cycles before submitting it for consideration as an "official" bundle.
A couple of updates (in the order that I plan to do things):
* I'd like to make the bundle publicly available via `svn checkout` so updates will be easier to obtain. It's been in Subversion all along, but I only use svn+ssh and am having to recompile Apache with the Subversion modules so unauthenticated people can get it via HTTP. (If there are enough people that aren't comfortable with Subversion, I will add a post-commit hook to make a `.zip` version as well, but I'm not going to bother unless there are complaints.)
* The commands don't work if there are spaces in the path. I'm working on that.
* I like Ciarán's idea for an easy way to create a new project and have always planned to add something like that, but haven't yet had time to learn to use tm_dialog.
--- Rob McBroom http://www.skurfer.com/ I didn't "switch" to Apple... my OS did.
On Oct 15, 2007, at 4:31 PM, Rob McBroom wrote:
- I'd like to make the bundle publicly available via `svn checkout`
so updates will be easier to obtain.
svn checkout 'http://svn.skurfer.com/svn/Remote Project.tmbundle'
(If there are enough people that aren't comfortable with Subversion, I will add a post-commit hook to make a `.zip` version as well, but I'm not going to bother unless there are complaints.)
This was so easy that I just went ahead and did it. For those that don't use Subversion, this should always be the latest.
http://www.skurfer.com/files/remote_project_bundle.zip
- The commands don't work if there are spaces in the path. I'm
working on that.
Fixed.
--- Rob http://www.skurfer.com/
Can you send me the hook you use? I'd love to set this up for my stuff! Just been too lazy to set it up myself :(
Thomas Aylott [SubtleGradient] from iPhone
On Oct 17, 2007, at 10:32 PM, Rob McBroom textmate@skurfer.com wrote:
On Oct 15, 2007, at 4:31 PM, Rob McBroom wrote:
- I'd like to make the bundle publicly available via `svn checkout`
so updates will be easier to obtain.
svn checkout 'http://svn.skurfer.com/svn/Remote Project.tmbundle'
(If there are enough people that aren't comfortable with Subversion, I will add a post-commit hook to make a `.zip` version as well, but I'm not going to bother unless there are complaints.)
This was so easy that I just went ahead and did it. For those that don't use Subversion, this should always be the latest.
http://www.skurfer.com/files/remote_project_bundle.zip
- The commands don't work if there are spaces in the path. I'm
working on that.
Fixed.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Oct 18, 2007, at 9:44 AM, Thomas Aylott wrote:
Can you send me the hook you use? I'd love to set this up for my stuff! Just been too lazy to set it up myself :(
Here is what I used for this bundle:
cd /tmp /usr/bin/svn export "file:///usr/local/svn/Remote Project.tmbundle" /usr/bin/zip -r /usr/local/www/docs/files/ remote_project_bundle.zip "Remote Project.tmbundle" > /dev/null /bin/rm -r "/tmp/Remote Project.tmbundle"
It could probably be smarter, but it works.
--- Rob McBroom http://www.skurfer.com/ I didn't "switch" to Apple... my OS did.