Correctly set branch and filename when loaded file into editor