The current behavior when a file that is open in TeXStudio is changed externally is less than satisfactory. To illustrate:
- Open a file, say, test.tex
- Edit it with another tool, say, echo >> test.tex
--> TeXStudio shows a dialog
- I do not want to be nagged by a dialog, instead the file should be reloaded automatically
- I don't mind if a dialog is shown if this can be turned off with a configuration option
- The undo history could be well preserved by making the external update one single modification in the undo history
That's the way eclipse and Visual Studio handle it, that's what I believe is state of the art. If you feel like going beyond the state of the art, consider the following behavior:
- Instead of adding the whole file contents to the history, perform a diff of the current state in TeXStudio to the new file state and add all changed chunks one by one. This automatically handles the case when the file hasn't been changed but its timestamp has been updated.
The funny thing is: When trying to replicate the behavior, the dialog doesn't show up anymore. The only thing that I have changed to my system is the installation and one-time usage of TeXMaker. Where does TeXStudio store its configuration? -- While the dialog doesn't bother me anymore (by now), the enhanced undo stack remains a valid request.