forked from GitHubMirrors/silverbullet-icalendar
Migrate to SilverBullet v2 indexing system
Replace deprecated query provider with index-based architecture. Events are now indexed using index.indexObjects() and queryable via Lua Integrated Query (LIQ). Breaking changes: - Plugin now requires SilverBullet v2 (use v0.1.0 for SB v1) - Old query syntax no longer works (use LIQ instead) - Manual sync required via 'iCalendar: Sync' command - Events cached for 6h by default (was real-time) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
This commit is contained in:
@@ -2,15 +2,16 @@ name: icalendar
|
||||
requiredPermissions:
|
||||
- fetch
|
||||
functions:
|
||||
syncCalendars:
|
||||
path: ./icalendar.ts:syncCalendars
|
||||
command:
|
||||
name: "iCalendar: Sync"
|
||||
priority: -1
|
||||
showVersion:
|
||||
path: ./icalendar.ts:showVersion
|
||||
command:
|
||||
name: "iCalendar: Version"
|
||||
priority: -2
|
||||
queryEvents:
|
||||
path: ./icalendar.ts:queryEvents
|
||||
events:
|
||||
- query:ical-event
|
||||
config:
|
||||
schema.config.properties.icalendar:
|
||||
type: object
|
||||
@@ -29,3 +30,6 @@ config:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
cacheDuration:
|
||||
type: number
|
||||
description: "Interval between two calendar synchronizations (default: 21600 = 6 hours)"
|
||||
|
||||
Reference in New Issue
Block a user