GNOME Bugzilla – Bug 659318
Set initial content for new documents
Last modified: 2020-10-02 14:17:51 UTC
Created attachment 196805 [details] [review] Set initial content for new documents As all arduino programs have the same structure, I suggest to initialize new documents with the standard structure.
I like this, however this requires more work and more headaches. Basically we need to fix changed/unchanged behaviour (* in the name tab), undo/save/quit operation - we need to compare the buffer against this structure. It is OK if somebody wants to write a new pde but it could be annoying if you want to write a library (I have no idea how often that could occur tho). While we could fix all of those, perhaps we can handle this differently, my thoughts is providing drop down option for the New button (clicking "V" symbol beside the New button - eg. Evolution New behaviour) and/or a popup with all those options and/or use this by default option to mimic the behaviour you suggest. Thoughts?
I'm not sure to understand what you mean by fixing the changed/unchanged behaviour. What's the problem currently? I understand .pde files are not the only files which can be created in gnoduino. But if they represent 95% of use cases, I think that simply clearing the default pde template is not so annoying. Of what you proposed, the submenu to the New button is preferred. Having a popup each time I create a new document is not nice, IMHO.
Gnoduino is not under development anymore. Its codebase has been archived. See https://gitlab.gnome.org/Infrastructure/Infrastructure/-/issues/437 Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the responsibility for active development again.