4 ms·
> I tried SL2 and it quite happily ignored the fact that the file had changed. Weird. I use Sublime Text 2 exclusively across all three platforms. Whenever an
by psykotic 14y ago
> I tried SL2 and it quite happily ignored the fact that the file had changed.
Weird. I use Sublime Text 2 exclusively across all three platforms. Whenever an open file changes (e.g. I sync to Perforce), it pops up a modal dialog box when I bring that file's tab back into focus. If you're referring to a file that's changed in the background as you're actively editing it, I admit I haven't tried that.
- rogerbinns 14y agoHave an edit window open, and then go in via a terminal/vi and change/save the same file. Then see what happens.
- psykotic 14y agoYes, that what's I was describing. It works just fine. When I tab back to Sublime, I get the "<filename> has changed on disk. Do you want to reload it?" modal dialog box. (If there are no unsaved changes in the Sublime buffer that could be clobbered, it just reloads the file silently as you'd expect.)
- rogerbinns 14y agoIt didn't work when I tried a few weeks ago. I am running on Linux.
- psykotic 14y agoMy test just now was on Windows, but I use it regularly on Mac and Linux as well, and I'm pretty sure I would have noticed if it silently clobbered changes like that. You're sure you had unsaved changes to the Sublime buffer for the file when you conducted your test?
- thejosh 14y agoWorks fine on Linux/Windows when ever something changes on both..
- jiggy2011 14y agoWorks fine for me. Ubuntu 12.04 with an Ext4 filesystem. Perhaps you are using an unusual filesystem or working over the network?
- rogerbinns 14y agoI'm using btrfs. In any event it sounds like my test must have been flawed. Perhaps I didn't notice it doing an auto-reload. I don't know what mechanism SL uses. A lot of my current work is using sshfs with editing happening on Linux and the endpoint being MacOS. inotify won't work for that, but more paranoid and repeated stats will.
- CJefferson 14y agoSublime text will auto-reload a file which has changed if you have not edited it, without prompting. It only prompts if you have local changes.
- Funnnny 14y agoIt'll automatically reload if you don't have any unsaved changes, if you have, it will ask you to reload
- antihero 14y agoWorks fine for me, on Linux. Mine usually just changes it to the new contents without a modal, but Ctrl-Z can reverse.
- christiangenco 14y agoSame here (on Mac) - it's always had this behavior for me.
- rhizome 14y agoThe only problem along these lines I've had with it is in renaming files, where it doesn't appear to be locking onto the inode and the previous-named file still remains in editor and can be saved with the old filename. OOB edits do get reflected back into the editor somehow, though.