Okay thanks, but what about TextMate opening files directly that have been mounted locally, not using rmate? Is it possible to reload the file without a close/re-open cycle? There is a reload command for the file listing on the browser, but not for files.
Optimally I'd like a contextual menu item to Reload when right clicking in the buffer window. Tab too would be nice but I'd be happy with the buffer.
-- Jason
On Aug 22, 2012, at 4:48, Allan Odgaard mailinglist@textmate.org wrote:
On Aug 22, 2012, at 3:53 AM, Jason McC. Smith jason@ncpod.org wrote:
[ files on remote drives ] I assume that there simply is no file-changed event to listen for in this case
Correct.
As a workaround, is there a simple way to trigger a refresh of the TextMate buffer?
There is not — TextMate should probably check on save, and warn if the file has been updated. But as you mention rmate, this is a bit problematic because rmate is a script that runs on your server and simply sends the file contents to TextMate and then gets the edited version back.
So rmate (the script running on your server) is the only one who can know when the file has been changed, but it can’t throw up a dialog or similar on your mac.
It could make a backup of the file before overwriting though. If you know ruby you can have a go at this yourself, we host the script here: https://github.com/textmate/rmate/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate