Bug 438533 - Kate does not create required parent folders while saving if started from command line
Summary: Kate does not create required parent folders while saving if started from com...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 21.04.2
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-13 06:19 UTC by Kishore Gopalakrishnan
Modified: 2023-08-17 17:29 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 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/