Bug 493729

Summary: New files should be automaticlly stored on close and reopen on start.
Product: [Applications] kate Reporter: Christoph Thielecke <crissi99>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: waqar.17a
Priority: NOR    
Version First Reported In: 23.08.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christoph Thielecke 2024-09-27 11:48:57 UTC
When kate has an new file while closing the application it requests to save it.

It would be nice to have the same behavior as on notepad++:
It don't asks the user on close for save new file(s), they are just saved in the application directory on a temporary filename and restore them on start.
This is very useful in case of interruption (reboot, crash, end of work, ...)

This should be enabled by a setting like "Save unsaved file(s) on open".
Comment 1 Christoph Thielecke 2024-09-27 11:59:03 UTC
*** Bug 493730 has been marked as a duplicate of this bug. ***
Comment 2 Waqar Ahmed 2024-09-27 12:20:30 UTC
1. Start using sessions functionality in Kate, create named sessions
2. See Sessions page in settings. Set your options there. Specifically "startup/shutdown behaviour" is what you want.

The feature is not that old so it might not be 100% reliable yet.
Comment 3 Waqar Ahmed 2024-09-27 12:21:37 UTC
Also, use a newer package, 24.08 or newer. The version you have is too old so it will be a lot buggier. We have appimages and flatpak support
Comment 4 Christoph Thielecke 2024-09-27 12:41:12 UTC
(In reply to Waqar Ahmed from comment #2)
> 1. Start using sessions functionality in Kate, create named sessions
> 2. See Sessions page in settings. Set your options there. Specifically
> "startup/shutdown behaviour" is what you want.
> 
> The feature is not that old so it might not be 100% reliable yet.

Nice! I did not see that.
Comment 5 Christoph Thielecke 2024-09-27 12:43:41 UTC
(In reply to Waqar Ahmed from comment #3)
> Also, use a newer package, 24.08 or newer. The version you have is too old
> so it will be a lot buggier. We have appimages and flatpak support

I had the ubuntu repo package installed.
After flatpak install it won't run by calling kate, it seems something is broken.
I could run it only by: "flatpak run org.kde.kate".

Can you check the flatpak package please?
Comment 6 Waqar Ahmed 2024-09-27 12:46:51 UTC
Not sure that is in my hands. You can create an alias for it in your bashrc file. Maybe removing distro package will allow you to call 'kate' directly.