Bug 493729 - New files should be automaticlly stored on close and reopen on start.
Summary: New files should be automaticlly stored on close and reopen on start.
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 23.08.5
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 493730 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-09-27 11:48 UTC by Christoph Thielecke
Modified: 2024-09-27 12:46 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.