if I create an image and save it to a folder that has been opened in the project pane, how do I get TextMate to recognise the new files?
the files are on a shared network folder, could this be part of the problem?
(I'm using TM on a Mac mini, with a WAMP set up for my development on a different box on the LAN)
currently I have to "add existing files"
is there a better way to "refresh" the files and folders in the project that I've missed?
if all the files were on a Mac would TM recognise new files in project folders automatically?
TIA
Tony, I've not worked a whole lot with projects stored on a network drive (partially for the reason you describe) but I can tell you that locally TextMate does recognize changes, but not always "Automatically" the way that, say, the Finder would. TextMate needs to re-scan your project directory before it will show changes. This usually just means switching to another application and back to trigger the re-scan (TM scans when the App regains focus).
This is probably being done with your project but it's happening slowly. Th TM documentation states:
"Currently updating is done when TextMate regains focus and can be slow for some network mounted disks, in which case you may want to settle for only adding individual files to the project [...]"
http://macromates.com/textmate/manual/ working_with_multiple_files#auto-updating_projects
I've never liked working with projects over the network. I find it much easier (and faster) to keep a local copy of my project and just FTP the changes over. If you don't want to FTP after every change (which honestly has never slowed me down) & you're using Apache/MySQL/ PHP anyway, why not just run it locally on your mac & then push out the changes when you're satisfied?
- Cliff
On Jul 1, 2007, at 11:34 AM, Tony Crockford wrote:
if I create an image and save it to a folder that has been opened in the project pane, how do I get TextMate to recognise the new files?
the files are on a shared network folder, could this be part of the problem?
(I'm using TM on a Mac mini, with a WAMP set up for my development on a different box on the LAN)
currently I have to "add existing files"
is there a better way to "refresh" the files and folders in the project that I've missed?
if all the files were on a Mac would TM recognise new files in project folders automatically?
TIA
-- Join me: http://wiki.workalone.co.uk/ Engage me: http://www.boldfish.co.uk/portfolio/
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 02/07/07, Cliff Pruitt lists.cpruitt@cliffpruitt.com wrote:
TextMate needs to re-scan your project directory before it will show changes. This usually just means switching to another application and back to trigger the re-scan (TM scans when the App regains focus).
I use TextMate on a Mac Mini, editing files on an NFS mounted filesystem. It works superbly.
The NFS server is sat on the same LAN segment, and it recognises new files in the way that you describe, but it does sometimes take a couple of focus/unfocus/focus cycles for files to appear.
I've never liked working with projects over the network. I find it much easier (and faster) to keep a local copy of my project and just FTP the changes over.
I've never understood how people can put up with ftp-ing every little change. Is there a way to automate it so you don't have to press any buttons to make it happen?
If it requires a manual "ftp-it-now" thought/action then it's a pain in the ass. I find that NFS works great (to the extent that I don't realise that it's not local). I'd find it far less smooth if my project was enormous as TextMate can pause slightly when you re-focus the window (though this can be alleviated by only adding the directories that you need to edit to your project). It would obviously be worse if I had much less bandwidth between me and the NFS server.
you're using Apache/MySQL/ PHP anyway, why not just run it locally on your mac & then push out the changes when you're satisfied?
You can't beat running your tests in a realistic environment before you check in; that means same the OS (and installed apps/libraries) as the servers that you deploy to.
I can't speak for Tony, but running the app locally isn't an option for me because the PHP/MySQL/Apache app that I'm working with has some other external dependencies that only run on Linux. And I think my Mini would run out of memory and run like treacle.
On Jul 5, 2007, at 4:42 AM, Graham Ashton wrote:
I've never liked working with projects over the network. I find it much easier (and faster) to keep a local copy of my project and just FTP the changes over.
I've never understood how people can put up with ftp-ing every little change. Is there a way to automate it so you don't have to press any buttons to make it happen?
There are clients that will auto-update the server side whenever you save the local copy you are editing. I use Cyberduck[1] to edit files on my servers via SFTP. (Before anybody mentions sshfs, I have tried it, numerous times, and it always dies, leaving things all screwy and hung, so I have given up on it).
I'm sure there are other FTP/SFTP clients that behave similarly.
-dan
On Jul 5, 2007, at 9:59 AM, Dan Lowe wrote:
On Jul 5, 2007, at 4:42 AM, Graham Ashton wrote:
I've never liked working with projects over the network. I find it much easier (and faster) to keep a local copy of my project and just FTP the changes over.
I've never understood how people can put up with ftp-ing every little change. Is there a way to automate it so you don't have to press any buttons to make it happen?
There are clients that will auto-update the server side whenever you save the local copy you are editing. I use Cyberduck[1] to edit files on my servers via SFTP. (Before anybody mentions sshfs, I have tried it, numerous times, and it always dies, leaving things all screwy and hung, so I have given up on it).
I'm sure there are other FTP/SFTP clients that behave similarly.
I also recommend Cyberduck. It basically gives you a textmate icon in your ftp gui window, which, when clicked on, will launch a file in a temporary folder. Whenever you save this temporary file, it will automatically upload through cyberduck to the server. I recommend using growl as well, so that this process isn't totally invisible to you... sometimes it can take a few seconds to upload, and it's nice to be notified when it's done.
The only snag I've run across is that I often work on project-wide changes, and using cyberduck in this way keeps you from using textmate's wonderful project support features.
On Jul 5, 2007, at 4:42 AM, Graham Ashton wrote:
I've never understood how people can put up with ftp-ing every little change. Is there a way to automate it so you don't have to press any buttons to make it happen?
If it requires a manual "ftp-it-now" thought/action then it's a pain in the ass.
It's really not a pain at all, not any more than the tedious bother of having to keep doing that pesky "Save" thing. It's all about motor memory. I don't "think" about ftp, it's just part of my motor memory for save. After your body is used to the action, there's really no difference between ⌘s and (⌘s)+(⌘⇧=). Unless your internet connection really sucks, the file is uploaded by the time you can ⌘⇥ to your browser anyway so it's not much difference. I've never had a terribly fast experience mounting remote file systems over the net so I guess it all just depends on personal preference and environment.
Now, I will say it can be frustrating when you experience network problems but anything remote is going to behave that way. Plus, sometimes it's your only option. Shared IIS hosts don't usually give you much in the way of remote file system access.
You can't beat running your tests in a realistic environment before you check in; that means same the OS (and installed apps/libraries) as the servers that you deploy to.
If you're targeting one system & one server configuration I'd agree with you. If you're targeting a product to run in any plain vanilla shared hosting environment then it's somewhat irrelevant cause you don't know what the OS or installed libraries are going to be anyway. When possible I'd prefer to configure my personal local server as I desire to suit my product, and then when working to my satisfaction on the baseline configuration, I can push out to something else to test again. In reality, though, I'm much in the same boat as you, however, in that a lot of my clients require Microsoft IIS Servers, which is why I default back to FTP.
As for the FTP client recommendations, I use Transmit, which has a lot of features to make it pretty transparent from TextMate or anywhere else.