Files
silverbullet-icalendar/icalendar.plug.yaml
Alexandre Nicolaie 34bbe69569 Add automatic calendar sync on editor initialization
Calendars now sync automatically when the editor starts, eliminating the
need for manual sync after opening SilverBullet.

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
2025-10-18 16:15:46 +02:00

43 lines
931 B
YAML

name: icalendar
requiredPermissions:
- fetch
functions:
syncCalendars:
path: ./icalendar.ts:syncCalendars
command:
name: "iCalendar: Sync"
priority: -1
events:
- editor:init
forceSync:
path: ./icalendar.ts:forceSync
command:
name: "iCalendar: Force Sync"
priority: -1
showVersion:
path: ./icalendar.ts:showVersion
command:
name: "iCalendar: Version"
priority: -2
config:
schema.config.properties.icalendar:
type: object
required:
- sources
properties:
sources:
type: array
minItems: 1
items:
type: object
required:
- url
properties:
url:
type: string
name:
type: string
cacheDuration:
type: number
description: "Interval between two calendar synchronizations (default: 21600 = 6 hours)"