Open
Description
Coming from https://community.silverbullet.md/t/towards-silverbullet-1-0/539/17
The workflow I'm picturing would be something like:
- Open a note
- Open command palette and run 'Git: Revert note to previous revision' (or smth)
- Filterbox opens up with a list of previous git revisions for the note
- User selects a previous revision
- Commit the current note if needed to prevent accidental data loss
- Run
git checkout <revision> -- path/to/note
to revert the note - Trigger a scan/reindex of the note if it doesn't happen automatically
- TBD: Maybe automatically commit the note saying it was reverted to a specific commit/timestamp. It might be nice, but also might be annoying if someone wants to quickly check multiple old revisions of the same note.
The filterbox would basically just need the output of git log path/to/note
and could show the commit message as part of the description - but I'm not sure how helpful it'd be when most of them will be "Auto Commit" anyway. But at least a date and timestamp would be helpful.