antoniotejada / obsidian-edit-history

Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
GNU Affero General Public License v3.0
55 stars 0 forks source link

Delete Functionality #5

Open Aetherinox opened 1 year ago

Aetherinox commented 1 year ago

Sorry for such as a simple thing, but is their a feature to delete the history for a certain page? I looked all over, and all I could find is the "Copy" button.

Or do I need to actually go into the directory and find the edtz file and delete it manually.

Another request that would be nice, would be a blacklist. I want most of my files to have their edits saved, however, there are 4 or so that I don't want the history tracked on. And right now I'd have to remove the .md entry in the whitelist, and manually add all the files I want tracked, and that would be a lot.

Or maybe a frontmatter / metadata value that would make the plugin skip saving edits such as:

---
notrack: true
---
antoniotejada commented 1 year ago

Right, there's no delete from inside Obsidian other than enabling viewing all files in the file explorer and deleting from there. There's a TODO in the README.md regarding edit history management. Tagging as enhancement

Regarding blacklist, see #6 and specifically #1, note that the current whitelist does suffix match, not just extension match, so maybe you can find a common suffix used by the files you want to track but not by the other 4.

Out of curiosity, is it really that much of a problem that there are 4 files or so extra being tracked?

Aetherinox commented 1 year ago

Out of curiosity, is it really that much of a problem that there are 4 files or so extra being tracked?

The reason for ignoring tracking on 4 of those items is because I have created a personal plugin for Obsidian that does with Argon2 hashing. It allows me to secure certain aspects of a note and replace plaintext with a hashed string.

As an example, the phrase "This is a test string" appears in my note as:

$argon2i,p=1$c29tZXNhbHQ$86hb98O0/5JGcFAX8kkO0Sy+hkysiuvNJMtulElZd4w

instead of the plaintext string.

Well, the history plugin is actually capturing the unhashed version, and unless I physically go in and delete those history saves, then it just makes this aspect of security pointless.

Granted, when I make snapshots of my obsidian vault, it gets thrown into a Bitlocker Encrypted drive, but it's still a loophole that would be utilized by an attacker should they ever somehow gain access.