3 ms·
> Are there editors that actually overwrite the original file, instead of creating a new file? Yes, there are. This bit me at one point, since I created a Make
by scbrg 6y ago
> Are there editors that actually overwrite the original file, instead of creating a new file?
Yes, there are. This bit me at one point, since I created a Make target depending on directories rather than individual files in the directories (for performance). A directory gets updated when a new file is created, so it worked for all developers except one - who had an editor that saved files in place. I think that developer was using Sublime, but I might remember wrong.
- rrobukef 6y agoI know `nano` does this.
- uryga 6y agoiirc Sublime Text overwrites if you set "atomic_save": false
- cl3misch 6y agoThank you! I code with Sublime on files mounted with sshfs, and could not figure out why %autoreload (automatically reload imported modules in iPython) did not work. Apparently %autoreload watches directory updates, which are only triggered with atomic saves when using sshfs with cache.