Skip to content

FR: Command to revert to previous version of a note #6

Open
@justyns

Description

@justyns

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions