[Github-comments] [geany/geany] Preserving the 'untitled' files (#2717)

Edgar notifications at xxxxx
Mon Jan 4 10:07:23 UTC 2021


I see, so changing the naming behaviour can be risky.

> Beware, there are things that assume unsaved tabs are called "untitled" so its likely that change will break other stuff, including in templates IIRC, and in plugins that are not part of Geany itself.

> To be clear, if they are to survive between invocations of Geany they need to be saved by the plugin, you seem to be skipping that point, where and how is the plugin going to save them? and will that give them a filename? if it does your problem is solved.

That risk involved, the plugin could just convert any untitled files into a real file on disk. Then the naming can be arbitrary. The plugin needs to save the file automatically on disk, at the latest when Geany is closed. Also, the plugin would always keep the red color of the tab, so the user independent of the naming behaviour always knows that the file is an auto-saved untitled file.

If users decide they want a file on disk, they would use `Save As...` to save a copy and continue with this copy or `Save` to virtually convert it to a "real file" which can be easily done by just moving it.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2717#issuecomment-753883052
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210104/09811de1/attachment.htm>


More information about the Github-comments mailing list