Sublime Forum

BUG: file not reloaded

#1

When I do git checkout - files are changed on disk, but sublime text do not reload that file if I have opened it before checkout.

So if I accidentally CTRL+s, I need git checkout again and do manually File->Reopen with encoding to refresh content of tab

0 Likes

#2

Sublime Text will automatically reload files unless you’ve modified them since saving them (they’re “dirty”). It won’t throw away any modifications that you’ve made.

0 Likes

#3

git diff A B test.txt
—hello1
+++hello2

  1. I am on branch A
  2. git checkout B
  3. open file test.txt
  4. git checkout A

GET:File is not reloaded.

Maybe I have “save_on_focus_lost”: true,?

I try that few times and, you are right, it is reloaded, but some time it is not. and some times it shows ‘this file has been modified’ icon, because its content is differ from disk

0 Likes