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

2021-01-04 Thread elextr
Just to confirm, discussion continues on #905 but this discussion still stands. -- 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-753937964

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

2021-01-04 Thread Matthew Brush
Closed #2717. -- 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#event-4164421467

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

2021-01-04 Thread Matthew Brush
This is a duplicate of #905 even though they may have been requested for different reasons. Please lets not scatter several discussions across duplicate issues. #905 is older, has quite a few :+1: s and only has 6 comments including one misunderstanding the request and one saying "patches

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

2021-01-04 Thread elextr
In particular see the "instant save" part of autosave plugin. -- 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-753896764

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

2021-01-04 Thread elextr
I'm not sure #905 is the same thing, its more about preserving state of files and sessions in an unexpected occurrence and _not_ being annoyed by checks to not save untitled scratch files (its got lots of stuff mixed in together). But this is about preserving unnamed editing tab contents in

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

2021-01-04 Thread elextr
Reopened #2717. -- 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#event-4164351055

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

2021-01-04 Thread Edgar
Closed #2717. -- 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#event-4164267737

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

2021-01-04 Thread Edgar
@codebrainz Yes, looks like a duplicate. @elextr Since multiple users are asking for it, are we still looking for a plugin (which seems to not exist), or could we implement it as core feature using a Pull Request? I will close this issue in favor of continuing the discussion in #905. -- You

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

2021-01-04 Thread Edgar
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

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

2021-01-04 Thread Matthew Brush
FWIW, the weirdness with new untitled files not opening sometimes is explained in #2656. I believe this issue is a duplicate of #905, and should be closed as such, with further discussion on the already existing issue as to not bifurcate it. -- You are receiving this because you are

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

2021-01-04 Thread elextr
> What do you think about that? 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, tabs are called the filename, if they have no

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

2021-01-04 Thread Edgar
> To be clear, the editing notebook is for _files_ it doesn't handle anything > else, and changing that is a big change. Would do you mean by _editing notebook_? > Your other option is to add tabs to the message window, like extra scribble > tabs, but that would be a whole new plugin. It

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

2021-01-04 Thread elextr
> it would need an additional tab because it is a very different approach A good point, and as you say it should be independent of any choosing of autosave settings, but as @kugel- noted, the general context is suitable for that plugin (and its way easier to extend an existing plugin than to

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

2021-01-04 Thread Edgar
I had now a look into the builtin plugin `Save Actions`. I think the asked feature could fit into this plugin; however it seems, it would need an additional tab because it is a very different approach. I for instance do not wish any autosaving of already existing, opened files, I only want that

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

2021-01-04 Thread elextr
> E.g. there is a plugin which highlights double-click-selected text in the > editor, but I always asked why this is not a core feature because I think it > is very helpful for many coders. Because it costs time and cpu to do this, especially on large files. And not everyone wants it, I for

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

2021-01-04 Thread elextr
https://github.com/geany/geany/blob/master/plugins/saveactions.c -- 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-753853551

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

2021-01-04 Thread elextr
To expand somewhat. All IDEs today do things by plugin, there are too many languages, use-cases, special cases, features etc to put them in core, especially for an IDE that makes at least a token effort to stay "small and lightweight". -- You are receiving this because you are subscribed to

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

2021-01-04 Thread Edgar
> Its not something that appears to be vastly desired or needed in the core > since this is the first time its been asked for, so it should be in a plugin, > at least to start with. Okay! What are the general reasons for when it is better to make a plugin instead of a core feature? E.g. there

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

2021-01-04 Thread elextr
Its not something that appears to be vastly desired or needed in the core since this is the first time its been asked for, so it should be in a plugin, at least to start with. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on

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

2021-01-04 Thread Thomas Martitz
I think it would make sense to enhance the autosave plugin to do this. -- 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-753848417

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

2021-01-04 Thread Edgar
Why not as a native feature via Pull Request? -- 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-753847098

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

2021-01-04 Thread elextr
"Somebody" can make a plugin to do this. -- 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-753846748

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

2021-01-04 Thread Edgar
What about a native feature which 1. changes the naming behaviour from `untitled, untitled, ...` to `untitled 1, untitled 2, ...`, and 2. keeps all those files opened in the editor after restart, without being forced to save them on disk. **Reason** People may use these untitled files just

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

2021-01-03 Thread elextr
No, files only exist if saved, and the only way to keep content when Geany is closed is to save it in a file. Note that `Preferences->Various->interface.new_document_after_close` controls if new `untitled`s get made or only one as @codebrainz noted. -- You are receiving this because you are

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

2021-01-03 Thread Matthew Brush
Geany will only open additional unsaved new files if you've modified the previous one, and will also only present the save dialog if you've modified the new unsaved documents. The action of saving them to disk is what persists them. > Is there a way to preserve those files in the editor without

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

2021-01-03 Thread Edgar
If I create files (`Ctrl+N`) then new files _untitled_, _untitled_, ... will be created. Once Geany gets closed, a save dialog is going to be opened for each of these files. Is there a way to preserve those files in the editor without being forced to save them, so they and their content would