Sync: Allow to exclude recovery history for certain file type or certain folder

Use case or problem

I was editing my PDF files and then suddenly I cannot sync anymore. Sync log kept logging “locked database …”. After a while, I realized that I have exceeded my sync size (50 GB), from 18GB to now 53GB.

Even though Obsidian supports the Purge function but right now, it fails to even show the button because it cannot retrieve vault size. It has been stuck at this message for half an hour.

And I cannot sync anything because of this.

Proposed solution

I still want to sync my attachment but I don’t need to have any of its version history.

Please add a settings to either exclude file types or exclude folders from creating version history.

Current workaround (optional)

None