Skip to content

Add image thumbnails to autocomplete suggestions - #1

Open
Hrafngud wants to merge 1 commit into
max-fluff:mainfrom
Hrafngud:feat/image-suggestion-thumbnails
Open

Hrafngud wants to merge 1 commit into
max-fluff:mainfrom
Hrafngud:feat/image-suggestion-thumbnails

Conversation

@Hrafngud

@Hrafngud Hrafngud commented Sep 27, 2026 •

Copy link
Copy Markdown

Summary

Add optional image thumbnails to autocomplete suggestions, making image-heavy reference libraries easier to browse.

  • Use the format registry to recognize every supported image extension, including BMP.
  • Resolve thumbnails only for TFiles inside the current vault, using Obsidian's vault.getResourcePath(); keep the existing text row when resolution fails.
  • Keep the option off by default, use a 48px thumbnail, and expose its size through Style Settings / --reference-linker-thumbnail-size.
  • Leave the shared submodule, indexing, and link generation unchanged.

Verification

  • npm test — 1,092 passed
  • npm run test:core — 17 passed
  • npm run build — generated main.js and styles.css committed
  • Manually tested SVG suggestions in Obsidian

That's how it looks like:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant