The backup copy created by the Save Actions plugin does not perform reliable 
backups of a file.

- When a existing file is opened, that version of the file is not backed up. 
For example, a file provided with the OS or by an application install, the 
contents of the original unmodified file are lost.
- When a file was modified by an external program, that version of the file is 
not backed up. For example, when a file is modified by another editor or 
written to by another application, the contents of that version of the file is 
not backed up.
- The backup strategy is not intuitive, as it does not perform a backup, 
instead it creates a second copy of the file _after_ it has been saved. This 
only creates a reliable sequence of backup copies when the file is created in 
Geany, and all changes to the file are performed by Geany.

There are a variety of backup strategies with different degrees of reliability, 
safety, and wall clock time. The building blocks for them may already be 
available within Geany, GTK, or other libraries already included.

I have seen Emacs and Notepad++ backups in action, and would prefer to have a 
similar quality backup solution in Geany. The first bullet point above is the 
case I encountered today, where finding the previous version is difficult.

>From Debug Messages:
```
18:44:17.432761: Geany INFO             : Using TCP port number 45937 for IPC
18:44:17.433762: Geany INFO             : Geany 
2.1_git_20240914021712_30f84de9a (git >= 30f84de9a), English_Canada.1252
18:44:17.433762: Geany INFO             : GTK 3.24.43, GLib 2.82.0
18:44:17.433762: Geany INFO             : OS: Windows 11 23H2
18:44:17.433762: Geany INFO             : System data dir: C:\Users\Doug\Geany 
2.1_git_20240914021712_30f84de9a\data
18:44:17.433762: Geany INFO             : User config dir: 
C:\Users\Doug\AppData\Roaming\geany

```
>From Windows ver command: `Microsoft Windows [Version 10.0.22631.4249]`


-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3978
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/[email protected]>

Reply via email to