Bug 438533

Summary: Kate does not create required parent folders while saving if started from command line
Product: [Applications] kate Reporter: Kishore Gopalakrishnan <kishore96>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: christoph
Priority: NOR    
Version First Reported In: 21.04.2   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2021-06-13 06:19:15 UTC
SUMMARY
If I start Kate from the shell as 'kate -n some_folder/some_file.txt', Kate is unable to save if `some_folder` does not exist

STEPS TO REPRODUCE
1. In the shell, type `kate -n folder_which_does_not_exist/newfile.txt`
2. Type something in the opened Kate window
3. Press Ctrl+S (save)

OBSERVED RESULT
Kate complains that it is not possible to write to the save location, and asks the user to check the permissions and disk space.

EXPECTED RESULT
If the required parent folder does not exist, Kate should create it and save the file.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2023-08-17 17:29:28 UTC
If you want to have that, please provide a patch.

I don't see need for that and don't see other editors doing it that way.

https://kate-editor.org/join-us/