Attachment Type Icons — Recognize attachment links at a glance

Disclaimer

Is this project open source? Yes
Is this project completely free? Yes
Is this project vibe-coded beyond the author’s ability to comprehend how it works? Yes
Community Directory: Attachment Type Icons


Attachment Type Icons

Attachment links often use clean, human-friendly display names, but that can make it hard to tell whether a link opens an image, PDF, spreadsheet, or another file type.

Attachment Type Icons adds a small, configurable icon before regular attachment links, so you can recognize the file type at a glance without changing your Markdown, file names, or link aliases.

Highlights

  • Detects common attachment types, including images, PDFs/documents, spreadsheets, audio, video, and archives.
  • Lets you enable or disable each file type.
  • Lets you customize icons and comma-separated file extensions.
  • Leaves embedded files such as ![[photo.jpg]] unchanged.
  • Does not scan or modify your vault.

I made this because I prefer keeping attachment links concise, while still being able to see what kind of file each link opens.

1 Like

Nice! I like it so far. If you were interested in expanding it’s functionality, you might allow the user to add other types. For example, if I include ebooks in my vault, it would be nice to add a type for ebook, and specify extensions like mobi/epub. If you wanted to get even deeper into the weeds, you could allow users to associate each type with a folder/tag/property so pdfs in one folder get this icon, and pdfs in that folder get that icon (so a pdf in my ‘ebooks’ folder gets an ‘ebook’ icon but pdfs elsewhere get a pdf icon).

Thanks for the great suggestion! I’m planning to add support for custom file types and folder-based rules first. For property-based matching, I’d like to think more about the best and most intuitive way to implement it before expanding the feature further.