[TxMt] Re: [TM2] Files on remote mounts not being refreshed - workaround?
Jason Smith
jason at ncpod.org
Wed Aug 22 16:27:08 UTC 2012
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 at textmate.org> wrote:
> On Aug 22, 2012, at 3:53 AM, Jason McC. Smith <jason at 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 at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list