Bug 494221

Summary: New document is not saved to recent documents list
Product: [Applications] kate Reporter: Szollosi-Nagy Balint <kde.dev.balint>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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