1
0
silverbullet/plugs/sync/sync.plug.yaml

45 lines
833 B
YAML
Raw Normal View History

2023-01-13 14:41:29 +00:00
name: sync
functions:
configureCommand:
path: sync.ts:configureCommand
command:
name: "Sync: Configure"
2023-01-26 14:54:28 +00:00
disableCommand:
path: sync.ts:disableCommand
command:
name: "Sync: Disable"
2023-01-13 14:41:29 +00:00
syncCommand:
path: sync.ts:syncCommand
command:
name: "Sync: Sync"
key: "Shift-Alt-s"
2023-01-13 14:41:29 +00:00
wipeAndSyncCommand:
path: sync.ts:localWipeAndSyncCommand
command:
name: "Sync: Wipe Local Space and Sync"
2023-01-26 14:54:28 +00:00
syncOpenedPage:
path: sync.ts:syncOpenedPage
events:
- editor:pageLoaded
2023-01-13 14:41:29 +00:00
check:
env: server
path: sync.ts:check
performSync:
env: server
path: sync.ts:performSync
2023-01-26 14:54:28 +00:00
# Sync every minute
cron: "* * * * *"
2023-01-26 14:54:28 +00:00
# Automatically sync the current page upon change
syncPage:
path: sync.ts:syncPage
env: server
events:
- page:saved