I believe this functionality has been removed in v2. In the changelog:
- You’ve entered the brave new world of SilverBullet 2.0. Welcome
- The following features have been removed:
- …
- Cron hook (plug feature)
And the autocommit function in the git plug relies on a cron hook:
name: git
requiredPermissions:
- shell
functions:
autoCommit:
path: git.ts:autoCommit
env: server
cron: "* * * * *" <----
I haven’t seen any information about reimplementing the cron hook. There is an event dispatched called cron:secondPassed
that could probably be used to implement a similar feature locally. I also so a discussion somewhere that included code to sync when leaving a page. I’ll try to find that and see if it works in v2.
Edit: This was the post I had seen. I haven’t tested it.