Bug 434050

Summary: Create directory to put backup file automatically
Product: [Applications] kate Reporter: Yuki <X1353135>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WAITINGFORINFO    
Severity: wishlist CC: christoph
Priority: NOR    
Version First Reported In: 20.12.2   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Yuki 2021-03-06 08:45:08 UTC
It's more convenient if kate creates director to put backup file on saving.
I needs manually make folder in advance now.

Example1-----

Kate backup configuration
Backup file prefix: kate/Backup/History_
Edited file: C:/Programs/src/module1/ab.c

Expected behavior => kate creates C:/Programs/src/module1/kate/Backup/ automatically, then save backup file as C:/Programs/src/module1/kate/Backup/History_ab.c

Example2-----

Kate backup configuration
Backup file prefix: kate/Backup_%{Date:yyyy}/History_
Backup file suffix: .%{Date:MMdd}/%{Time:HHmmss}.bak

Expected behavior => kate creates C:/Programs/src/module1/kate/Backup_yyyy/History_ab.c.MMdd/ automatically, then save backup file as C:/Programs/src/module1/kate/Backup_yyyy/History_ab.c.MMdd/HHmmss.bak
Comment 1 Christoph Cullmann 2023-08-06 16:34:36 UTC
I don't think that is such a often used feature that it requires this amount of
flexibility.

If you think otherwise, patches to add this are welcome, but I don't see that
the team will spend work on that.

https://kate-editor.org/post/2020/2020-07-18-contributing-via-gitlab-merge-requests/