Commit Graph

37 Commits

Author SHA1 Message Date
7ff19185e2 Update .github/workflows/publish.yml
Some checks failed
Build SilverBullet Plug / build (push) Failing after 8s
2026-02-15 14:57:29 +00:00
606340058e Update .github/workflows/publish.yml
Some checks failed
Build SilverBullet Plug / build (push) Failing after 24s
2026-02-15 14:54:48 +00:00
1107571bf1 Update .github/workflows/publish.yml
Some checks failed
Publish / publish (push) Failing after 1m6s
2026-02-15 14:49:38 +00:00
1d2fd52715 Add .github/workflows/publish.yml 2026-02-15 14:47:33 +00:00
Alexandre Nicolaie
deb30ab6b3 Migrate to ts-ics 2.4.0 API and fix duplicate recurring events
ts-ics 2.4.0 changed API from parseIcsCalendar to convertIcsCalendar
and VCalendar to IcsCalendar. The new API returns Date objects and
nested date structures that require recursive conversion to strings
for SilverBullet indexing.

Recurring events were creating duplicate refs because the hash only
used the UID, which is identical across occurrences. Including the
start date in the unique key ensures each occurrence gets a distinct
ref.

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
Alexandre Nicolaie
904c1b9d94 Add clear all events functionality
Add 'iCalendar: Clear All Events' command to completely remove
all indexed calendar events and cache. Useful for maintenance
and troubleshooting.

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
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
Alexandre Nicolaie
38dd97c25c Add force sync command
Add 'iCalendar: Force Sync' command to bypass cache and
immediately synchronize calendar events. Useful when you
need fresh data before the cache expires.

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
Alexandre Nicolaie
d3e4fc021b 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>
2025-10-18 16:15:46 +02:00
Marek S. Lukasiewicz
8a7c9700ee Update README 2025-01-05 19:22:02 +01:00
Marek S. Lukasiewicz
e12420aba3 Add Nextcloud screenshot 2025-01-05 19:09:48 +01:00
Marek S. Łukasiewicz
4df5a1f8a8 Update README.md 2025-01-05 18:20:40 +01:00
Marek S. Lukasiewicz
e13e6e2bc2 Add LICENSE 2025-01-05 17:59:16 +01:00
Marek S. Lukasiewicz
529c534d4a Add version command v0.1.0 2025-01-05 17:57:27 +01:00
Marek S. Lukasiewicz
d28bd28efc Add instructions for Nextcloud and Google Calendar 2025-01-05 17:54:11 +01:00
Marek S. Lukasiewicz
1de79df25d Define the event object 2025-01-05 17:14:34 +01:00
Marek S. Lukasiewicz
9d234428d4 Load ics sources from Space Config 2025-01-05 16:56:39 +01:00
Marek S. Lukasiewicz
968353ce80 Rename Plug to icalendar 2025-01-05 16:06:57 +01:00
Marek S. Lukasiewicz
98edb7a818 Specify project scope 2025-01-04 20:51:41 +01:00
Marek S. Lukasiewicz
10a64f8927 Fix querying with filters 2025-01-04 19:22:43 +01:00
Marek S. Lukasiewicz
c028032787 WIP: Query for events 2025-01-03 23:55:53 +01:00
Marek S. Lukasiewicz
23f9208e9c Basic examples for CalDAV and .ics URL 2025-01-03 22:45:14 +01:00
Marek S. Lukasiewicz
d796b8ac62 Add tsdav dependency with basic example 2025-01-03 21:32:18 +01:00
Marek S. Lukasiewicz
933c55400d Setup CalDAV plug 2025-01-03 19:19:38 +01:00
Zef Hemel
c4f12ba442 Switch to using JSR for syscalls calls 2024-08-15 11:42:47 +02:00
Zef Hemel
28f4aacf84 Updated to new conventions 2024-07-30 14:34:50 +02:00
Zef Hemel
db6841dd1c Add import map 2024-07-23 21:07:53 +02:00
Zef Hemel
d27b2cc583 Fix example 2024-03-16 16:18:45 +01:00
Zef Hemel
a377590e7b Update 2023-08-22 10:38:43 +02:00
Zef Hemel
d289d96f68 Cleanup 2023-08-22 10:36:42 +02:00
Zef Hemel
211e9f892c Update deno.jsonc
Switch to `silverbullet plug:compile`
2022-10-29 16:49:46 +02:00
Zef Hemel
ac1c1564df Merge pull request #3 from silverbulletmd/deno
Use the deno-based Silver Bullet plug build
2022-10-25 18:40:08 +02:00
Zef Hemel
8218429ad4 Updated README 2022-10-15 20:23:55 +02:00
Zef Hemel
cb79d165a5 Use the deno-based build 2022-10-15 20:14:55 +02:00
Guillermo Vayá
5f9bde8451 Merge pull request #1 from silverbulletmd/zefhemel-patch-1
Add await
2022-07-24 09:54:10 +02:00
Zef Hemel
b90e7a0417 Add await
Even though it technically works without, let’s be clear that syscalls are always async.
2022-07-24 09:12:17 +02:00
Guillermo Vaya
ad5e9efddf initial commit 2022-07-24 01:25:20 +02:00