Commit graph

13 commits

Author SHA1 Message Date
Lukas Wolfsteiner
6779b5f539 feat(settings): support settings search with legacy fallback
Implement the declarative setting definitions API so plugin settings
show up in the settings search on newer Obsidian versions.

Add a self-contained control value reader/writer and an imperative
fallback renderer so the tab keeps working on app versions that
predate the declarative API.

Lower the minimum app version to match the documented compatibility
floor already declared in the version map.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 12:04:29 +02:00
Lukas Wolfsteiner
c12cf641b1 feat(blocks): support show and hide field options in raindrop blocks
Add comma-separated show and hide keys to fenced raindrop blocks, layered on top of the result display settings.

Unknown field names produce a warning above the rendered results.

Collection titles are fetched lazily and cached, only when a block or the explorer shows the collection field.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 11:31:42 +02:00
Lukas Wolfsteiner
fc920c58a2 feat(settings): add result display toggles
Add a result display group with toggles for cover, domain, created date, excerpt, tags and collection.

Toggles apply to the explorer immediately and act as the default for note blocks.

Loaded settings merge missing display fields with the defaults, so upgrades keep the previous appearance.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 11:29:44 +02:00
Lukas Wolfsteiner
b643644fb0 feat(renderer): add configurable result display fields
Introduce a display fields option so callers can toggle cover, domain, created date, excerpt, tags and collection per result row.

Render an optional cover thumbnail and a collection label resolved from a collection title map.

Defaults keep the previous appearance, so existing views render unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 11:28:15 +02:00
Lukas Wolfsteiner
a41574e926 feat(api): resolve collection titles for raindrops
Expose the parent collection reference on fetched raindrops.

Add a collections lookup that maps collection IDs to titles, including the Unsorted and Trash system collections.

Enables showing which collection a bookmark belongs to in rendered results.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 11:28:09 +02:00
Lukas Wolfsteiner
d9aac145ec feat!: adopt declarative settings API
Replace the imperative display() implementation with getSettingDefinitions(), making plugin settings discoverable through the settings search.
Number inputs now use native number controls with range validation and inline error messages instead of silent clamping.
The access token keeps its password-masked input through a render definition.
Values are trimmed and validated centrally in a setControlValue override.

BREAKING CHANGE: the minimum app version is raised to 1.13.0 because the declarative settings API is unavailable in older releases

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 11:21:24 +02:00
Lukas Wolfsteiner
db71df59b8 chore: update user-facing text for clarity and consistency in documentation and code comments 2026-07-06 10:53:32 +02:00
Lukas Wolfsteiner
8f1a5e7445 fix: Use definitive declaration 2026-06-10 16:16:24 +02:00
Lukas Wolfsteiner
4dc7207c41 feat: introduce bookmark explorer
- Add a note-aware explorer for browsing saved bookmarks and filtering from note context.
- Support inline blocks, configurable tag behavior, and theme-friendly icon styling.
- Prepare release metadata, documentation, licensing, and automated release assets.
2026-05-02 00:46:27 +02:00
Johannes Theiner
92cba25647 update sample plugin with eslint instructions 2025-11-10 12:26:07 +01:00
Johannes Theiner
9984b040b6 remove testing code 2025-10-17 12:36:26 +02:00
Johannes Theiner
dbc9096f81 Add lint action 2025-07-04 13:27:53 +02:00
Johannes Theiner
15e343739e
Add stylelint and configure eslint to add custom plugin.
- Split up main.ts into multiple files.
2024-07-31 22:59:59 +02:00