Bug 434050 - Create directory to put backup file automatically
Summary: Create directory to put backup file automatically
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 20.12.2
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-06 08:45 UTC by Yuki
Modified: 2023-08-06 16:34 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 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/