12

If a file open in geany is modified by another program, and geany is then brought to the front, then geany displays a modal dialog as follows.

The file 'stuff.txt' on the disk is more recent than
the current buffer.

Do you want to reload it?

This dialog is displayed, blocking any sort of work flow if files are continually regenerated by running command-line tools. How can this behavior be changed so that the dialog does not appear, and geany automatically reloads any such file?

Carl Sturtivant
  • 137
  • 1
  • 3
  • I don't believe this can be changed, at least I don't see any options anywhere that seem to pertain to this. You might have better luck contacting their mailing list. – Benny Hill Apr 19 '13 at 18:57
  • Not true. See @Shivang Tiwari's answer, and my comment. – m4r35n357 Feb 17 '22 at 11:18

3 Answers3

3

Close Geany (else your changes will be overwritten), then open geany.conf in a different editor. Find disk_check_timeout and set it to 0. Save that, and reopen Geany.

3

Open geany.conf in a different editor and set the line reload_clean_doc_on_file_change=false to reload_clean_doc_on_file_change=true

user598527
  • 175
  • 13
0

The dialog cannot be disabled and automatic reloading is not supported (which could be bad anyway, depending on whether you've made changes to the document).

That being said, I had started working on a better method using GtkInfoBar like Gedit uses so that it wouldn't block you from working but still notify you of changes. Unfortunately I haven't had much time or interest to push it through into the master branch. If you feel like trying to use it (not recommended in current out-of-date/incomplete state) or continuing work on it, the branch is here.

Matthew Brush
  • 164
  • 1
  • 1
  • 5