]> git.lizzy.rs Git - micro.git/commit
Improve backup system
authorZachary Yedidia <zyedidia@gmail.com>
Mon, 22 Jun 2020 21:54:56 +0000 (17:54 -0400)
committerZachary Yedidia <zyedidia@gmail.com>
Mon, 22 Jun 2020 21:54:56 +0000 (17:54 -0400)
commita8332fd316d3a26b0c7923a72999000edaeae5b9
tree8d726588e3b948601fbfca88ecad72ef91fc80d0
parentc5136820c476a9006b5110b23f56f6a83cf3aed5
Improve backup system

This commit introduces several improvements to the backup system.

* Backups are made every 8 seconds for buffers that have been modified
  since the last backup.

* The `permbackup` option allows users to specify that backups should
  be kept permanently.

* `The backupdir` option allows users to store backups in a custom
   directory.

Fixes #1641
Fixes #1536
Ref #1539 (removes possibility of race condition for backups)
cmd/micro/micro.go
internal/buffer/backup.go
internal/buffer/buffer.go
internal/config/settings.go
runtime/help/options.md