Technically, the plugin is not behaving "wrong", because it exactly does as 
advertised. Still, what is doing is dangerous: If the file is not locked by me, 
but - as in case of a file on a network share, which might be locked by a 
completely different person, and I even don't know by whom -, I'm losing all my 
unsaved work.

How about this: 

Make the popup-dialogue non-modal and modify the plugin in that way, that it 
does not show a popup for a certain file (to be saved), if there is one still 
open.

Another possibility would be that the plugin - if Geany plugins have access to 
the status bar - do not show up the dialogue box, but instead display a message 
"file can't be saved because it is locked". While this is not a very 
user-friendly way - messages can easily be overseen -, it's still better than 
risking that work gets lost.

A third possibility would be that the plugin, if we change the popup. Instead 
of having only one button ("OK"), we now have two buttons ("OK", "Save as..."), 
which permits the user to save the file under a different name. This would be 
handy even if the plugin is not active, because we always may run into the 
problem that our file has been locked and we can't do anything against it, but 
at least we want to quickly save our work.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/815#issuecomment-165023179

Reply via email to