Bug 494221 - New document is not saved to recent documents list
Summary: New document is not saved to recent documents list
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 22.12.3
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-06 21:59 UTC by Szollosi-Nagy Balint
Modified: 2024-10-11 18:49 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 Szollosi-Nagy Balint 2024-10-06 21:59:05 UTC
SUMMARY



STEPS TO REPRODUCE
1. Click New to create an empty document
2. Type "blabla" so that it has some content
3. Save to disk to your home directory for example with a name "this_important_file.txt"
4. Close Kate
5. Open Kate, and look at "Open recent" or at the Welcome screen that has "Recent documents and Projects". You will not see you new file there.

OBSERVED RESULT
The "this_important_file.txt" is missing from the recent files list.

EXPECTED RESULT
The "this_important_file.txt" should be in the recent files list.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)

Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-26-amd64 (64-bit)
Graphics Platform: offscreen



ADDITIONAL INFORMATION

If I use Open to open a file, then it shows up in the recent files as expected. It is only the "New" and then "save" that forgets to update that list. Note: I tried to find duplicates of this issue, in case it was already reported but I did not find any.

In Kate Settings, I tried  both "load last used session" and "manually choose session". Both have this issue (or maybe this issue is unrelated)
Comment 1 Christoph Cullmann 2024-10-07 08:46:13 UTC
This is fixed in the latest release.
Comment 2 Szollosi-Nagy Balint 2024-10-11 18:11:09 UTC
(In reply to Christoph Cullmann from comment #1)
> This is fixed in the latest release.

Great news, thank you!
Comment 3 Szollosi-Nagy Balint 2024-10-11 18:49:45 UTC
For anyone that uses Debian and would not like to wait for the next release, you can download the kate source and patch it manually using the content from this commit:
https://github.com/KDE/kate/commit/22e53dec2537e5c19b9eb707eff2c309b226f1c2