local-history icon indicating copy to clipboard operation
local-history copied to clipboard

Feature requests x 2: Backup on Save + Retain n versions

Open BirdyOz opened this issue 7 years ago • 2 comments

Thank-you for this fabulous plugin. It has saved my bacon more than once.

  1. Backup on Save Could it be configured to automatically backup on file save? I tend to keep my working file open and focused, but may go through multiple saves and therefore versions. I'd like to retain each of these versions.

I realise I could always just hit "undo" as many times as needed, but the diff check feature of you plugin would greatly help me roll back to the version I needed.

  1. Retain n versions As it stands, you have a retention preference, based on date: "history_retention": 0,

My development is idiosyncratic. Some files I might edit 20 times in a day, others I may not edit for months.

Could an additional preference be added to allow the user to define how many copies of a particular file might be retained? eg. "max_versions_retention": 20,

Thanks in advance

BirdyOz avatar Jul 05 '17 01:07 BirdyOz

I like the max number of retentions idea.

reagle avatar Jul 21 '17 19:07 reagle

I know it is almost a year of this issue but I think that setting the skip_if_saved_within_minutes config variable to at least 1 could help you to keep track of the saved versions as long as they have at least 1 minute time difference

lben avatar Apr 10 '18 14:04 lben