Bug 469210 - Allow closing even if documents aren't saved
Summary: Allow closing even if documents aren't saved
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 22.12.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-30 21:13 UTC by Ryein Goddard
Modified: 2023-04-30 21:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryein Goddard 2023-04-30 21:13:40 UTC
It would be nice if the editor didn't care at all if the document was saved or not.  It should just keep all reference to the files in its own directory and only delete those if the user closes the tab.

So for example, if I have 5 unsaved documents open, I can close Kate and if I have the "restore previous session" enabled then it should just re-load those 5 unsaved documents. 

Saving sessions is nice if you want to restore a previous working environment, but this is useful if you want to just quickly dump some text and restore it.  Almost as your code note pad where saving the code might not be useful, but having it auto saved in Kate would be.
Comment 1 Waqar Ahmed 2023-04-30 21:36:11 UTC
Open settings, and check "Sessions" -> Automatically Save and Restore -> Newly created unsaved files

Headsup: There is an unfixed bug about this where a "tab" isn't created for untitled docs, instead you need to open the document from the "Documents" sidebar upon restart.
Comment 2 Ryein Goddard 2023-04-30 21:40:18 UTC
Are you saying if you open kate and just click the new document button and then close Kate it should not nag you about saving a file, and then it will restore that unsaved "buffer/file"?

Because I am currently not having this experience.

Thanks

On 4/30/23 2:36 PM, "Waqar Ahmed" <bugzilla_noreply@kde.org> wrote:
> https://bugs.kde.org/show_bug.cgi?id=469210
> 
> Waqar Ahmed <waqar.17a@gmail.com> changed:
> 
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |waqar.17a@gmail.com
>               Status|REPORTED                    |RESOLVED
>           Resolution|---                         |FIXED
> 
> --- Comment #1 from Waqar Ahmed <waqar.17a@gmail.com> ---
> Open settings, and check "Sessions" -> Automatically Save and Restore -> Newly
> created unsaved files
> 
> Headsup: There is an unfixed bug about this where a "tab" isn't created for
> untitled docs, instead you need to open the document from the "Documents"
> sidebar upon restart.
> 
>
Comment 3 Waqar Ahmed 2023-04-30 21:43:01 UTC
> Are you saying if you open kate and just click the new document button and then close Kate it should not nag you about saving a file, and then it will restore that unsaved "buffer/file"?

Yes. There is another option below the one I mentioned in my prev comment, check that.
Comment 4 Ryein Goddard 2023-04-30 21:45:26 UTC
I have looked at "Session" I have everything checked and I do not have this experience.

Kate version 22.12.3

Is it in an upgraded version?

On 4/30/23 2:43 PM, "Waqar Ahmed" <bugzilla_noreply@kde.org> wrote:
> https://bugs.kde.org/show_bug.cgi?id=469210
> 
> --- Comment #3 from Waqar Ahmed <waqar.17a@gmail.com> ---
> > Are you saying if you open kate and just click the new document button and then close Kate it should not nag you about saving a file, and then it will restore that unsaved "buffer/file"?
> 
> Yes. There is another option below the one I mentioned in my prev comment,
> check that.
> 
>