Backup files
#7618
Replies: 1 comment 16 replies
-
When my battary died on windows and later bootet up, the file I had opened in helix was just blank when I opened it again. I would love an option to just keep rolling backups of the open buffers as well somewhere. Or even auto save after a certain time :( |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basically, the same as the backup option in (n)vim: every time a file is changed and then saved to disk, just save its previous version somewhere to keep a backup of the last edit.
This should be easy to implement, as it is basically a modified version of
:update
. With the variable expansion feature, this could also be set up by users autonomously, but I think it's better to provide a command ad-hoc for this, with a configurationautomatic_backup
and anotherbackup_directory
. Ifbackup_directory
is"."
, then files are backed up side-to-side to the original files with the addition of~
to the filename.This is super-useful when while developing you delete files by mistake.
Beta Was this translation helpful? Give feedback.
All reactions