slynch8 / 10x

10x IDE/Editor
184 stars 33 forks source link

Feature: 10x should reload file if changed outside 10x #2566

Open neeraj9 opened 5 months ago

neeraj9 commented 5 months ago

I noticed that file contents did not update when I changed file outside 10x and then switched focus back to 10x pane where the file was opened. There is a reload functionality in modern editors, which allows this workflow.

I copied the file from a backup outside 10x while the file was opened, but when switched to 10x and saved the file then the changes were effectively lost.

slynch8 commented 5 months ago

10x does detect file changes using a directory watcher. When the file is changed is the last write time being changed in the file properties?

slynch8 commented 5 months ago

If you have made changes to the file and the file is also modified externally 10x should bring up a message box asking which changes you want to keep.

Let me know if you find a way to repro the problem, as it all seems to be working as expected here.