Hi, I googled and found a post in 2004. http://lists.macromates.com/pipermail/textmate/2004-October/001041.html
It was exactly what I was looking for. It took me a while to figure it out so I documented it (roughly) incase other's would find it of use. http://enure.net/post/article/using-rsync-to-enable-the-project- drawer-in-textmate-while-working-on-a-remote-server
Let me know of any mistakes/suggestions.
best,
Charles
From the blog:
"Textmate only allows one to use the project drawer if you’re working on a project. Otherwise, there’s no ability to use a drawer or tabs and you’re back to regular multi-window text editing—which stinks. Most people run into this issue while editing files live on a server via sFTP or FTP with Transmit or some other client."
Actually, I've run into this issue plenty of times when working with the *local* filesystem. I bet everyone's experienced this at some point: You end up with lots of files open that don't belong to any particular project, so you have this extra-long Window menu and can't easily jump between open files like you can with project files. It would be nice if TextMate had some kind of "anonymous project" window -- that is, a pseudo-project that looks and acts like a regular project, but instead of representing a folder or specific set of files, it would represent all the open files that don't belong to any project. You know, like BBEdit's file drawer.
"Actually, there are three ways. If Mac OS X could mount a remote sFTP connection one could easily accomplish our goal. It does not. It mounts FTP connections, but they are read-only—so again no go."
However, as has also been pointed out on the list, OS X can mount remote directories via WebDAV, AFS, and NFS. That way, you can create projects on the remote server directly, just as you would on local filesystems. I prefer this solution whenever possible because it's so simple and doesn't need rsync or other special commands.
Trevor
On 15-Apr-06, at 10:20 PM, Trevor Harmon wrote:
From the blog:
"Textmate only allows one to use the project drawer if you’re working on a project. Otherwise, there’s no ability to use a drawer or tabs and you’re back to regular multi-window text editing—which stinks. Most people run into this issue while editing files live on a server via sFTP or FTP with Transmit or some other client."
Actually, I've run into this issue plenty of times when working with the *local* filesystem. I bet everyone's experienced this at some point: You end up with lots of files open that don't belong to any particular project, so you have this extra-long Window menu and can't easily jump between open files like you can with project files. It would be nice if TextMate had some kind of "anonymous project" window -- that is, a pseudo-project that looks and acts like a regular project, but instead of representing a folder or specific set of files, it would represent all the open files that don't belong to any project. You know, like BBEdit's file drawer.
Okay, how about making a new project (from the file menu), and dragging the files into it?
"Actually, there are three ways. If Mac OS X could mount a remote sFTP connection one could easily accomplish our goal. It does not. It mounts FTP connections, but they are read-only—so again no go."
However, as has also been pointed out on the list, OS X can mount remote directories via WebDAV, AFS, and NFS. That way, you can create projects on the remote server directly, just as you would on local filesystems. I prefer this solution whenever possible because it's so simple and doesn't need rsync or other special commands.
"Whenever possible" may not be very often however.
Rob
On Apr 15, 2006, at 7:43 PM, Rob Rix wrote:
Okay, how about making a new project (from the file menu), and dragging the files into it?
For that I'd have to manually add the files to the project, then manually remove them when I'm done. (Closing a document in a project only closes its tab; the file remains in the project until I explicitly remove it.) That's fine for well-defined projects, but when I'm editing random shell scripts or just want to quickly examine some Java code I've downloaded, that sort of thing, then I don't want to have to manage a project. I prefer the BBEdit model in those cases, where opening a file automatically adds it to the file drawer and closing the file automatically removes it. The TextMate way is still far superior for full-blown projects, but it'd be nice to somehow have the best of both worlds.
"Whenever possible" may not be very often however.
Perhaps; I was just pointing it out because the blog posting only mentioned the possibility of SFTP mounting.
Trevor
Okay, how about making a new project (from the file menu), and dragging the files into it?
For that I'd have to manually add the files to the project, then manually remove them when I'm done. (Closing a document in a project only closes its tab; the file remains in the project until I explicitly remove it.) That's fine for well-defined projects, but when I'm editing random shell scripts or just want to quickly examine some Java code I've downloaded, that sort of thing, then I don't want to have to manage a project. I prefer the BBEdit model in those cases, where opening a file automatically adds it to the file drawer and closing the file automatically removes it. The TextMate way is still far superior for full-blown projects, but it'd be nice to somehow have the best of both worlds.
Ah, I understand your meaning now.
"Whenever possible" may not be very often however.
Perhaps; I was just pointing it out because the blog posting only mentioned the possibility of SFTP mounting.
Indeed.
Trevor
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 Apr 15, 2006, at 21:20, Trevor Harmon wrote:
However, as has also been pointed out on the list, OS X can mount remote directories via WebDAV, AFS, and NFS. That way, you can create projects on the remote server directly, just as you would on local filesystems. I prefer this solution whenever possible because it's so simple and doesn't need rsync or other special commands.
The drawback for WebDAV is that it does not handle permissions. And NFS/AFS over the Internet is hazardous at best (though possible).
Linux has Fuse, which makes it quite easy to write file systems in userspace code. I wish there were something similar for OS X. That would make it quite easy to implement file systems based on sftp etc., or even file systems that hook directly into svn etc.
Gerd
Any kernel hackers around? We neeeeed you! Seriously, FUSE is awesome and I'd love to have its functionality on my Macs.
Rob
On 16-Apr-06, at 12:48 AM, Gerd Knops wrote:
On Apr 15, 2006, at 21:20, Trevor Harmon wrote:
However, as has also been pointed out on the list, OS X can mount remote directories via WebDAV, AFS, and NFS. That way, you can create projects on the remote server directly, just as you would on local filesystems. I prefer this solution whenever possible because it's so simple and doesn't need rsync or other special commands.
The drawback for WebDAV is that it does not handle permissions. And NFS/AFS over the Internet is hazardous at best (though possible).
Linux has Fuse, which makes it quite easy to write file systems in userspace code. I wish there were something similar for OS X. That would make it quite easy to implement file systems based on sftp etc., or even file systems that hook directly into svn etc.
Gerd
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
According to Gerd Knops:
Linux has Fuse, which makes it quite easy to write file systems in userspace code. I wish there were something similar for OS X. That would make it quite easy to implement file systems based on sftp etc.,
This is [again] where a VCS (or even better a distributed VCS) shines. You work locally and commit/clone/push/whatever your modifications to your production/pre-test/test machine.
You get the same advantages as rsync/transmit/fugu but you also have history, rollback and all the good stuff coming from VCSes...
or even file systems that hook directly into svn etc.
Transparent VCS are not IMHO a good idea, you lose many of the advantages running one if you don't know it...
On Apr 15, 2006, at 6:41 PM, charles stuart wrote:
Hi, I googled and found a post in 2004. http://lists.macromates.com/pipermail/textmate/2004-October/ 001041.html
It was exactly what I was looking for. It took me a while to figure it out so I documented it (roughly) incase other's would find it of use. http://enure.net/post/article/using-rsync-to-enable-the-project- drawer-in-textmate-while-working-on-a-remote-server
Let me know of any mistakes/suggestions.
Hi Charles, et al
still feeling may way around TextMate but I noticed your post with interest. I'm most of the way there but perhaps you (or someone, anyone) could clue me in on how to finish things up.
In the Command Editor, I've set "Save:" to 'All File in Project"
After testing hardcoded values in terminal and verifying that everything works as expected, I pasted your TM_VARIABLE based version of the command into the "Command(s):" textfield.
And instead of executing the command, I just wanted it to echo the populated command back to me. And the construct "${TM_SSH_USER:+ $TM_SSH_USER@}$TM_SSH_HOST:$TM_SSH_REMOTE_PATH" is only coming back as ":"
What did I miss? Where do those values get set??
tia, jeff