Skip to content

Improves the way linked files are displayed in Obsidian, making them beautifully distinct from notes.

License

Notifications You must be signed in to change notification settings

felixqueisler/Obsidian-FileLink-Styling

Repository files navigation

Obsidian-FileLink-Styling

Improves the way linked files are displayed in Obsidian (reading view), making them beautifully distinct from notes.

Features

  • Beautiful simple button-style links for files
  • Inline SVG-Icons
  • Easily expandable through SCSS
  • Follows your theme
  • Multi-Icon support

Screenshot

Feature Preview

Usage

  1. Download the css-file or compile your own version using scss/sass compiler.
  2. Open Obsidian settings > appearance > CSS Snippets and move the file to the snippet folder.
  3. Activate the snippet in the Obsidian settings. Read more here: Obsidian Help
  4. Open your notes in reading view.

Supported filetypes

As of now. Ask for more with GitHub's issue feature. Due to limitations in writing selectors for anchors based on their href property, filetypes have to be set specifially.

  • Code Files

    • Extensions: html, css, js, php, py, java, cpp, c, cs, rb, go, lua, swift, ts, json, xml, scss, sass, sh, asm, sql, r, pl, h, hpp
    • Icon Source
  • PDF Files

  • Video Files

    • Extensions: mp4, avi, mov, wmv, mkv, flv, mpeg, mpg, webm, vob, m4v, 3gp, 3g2, f4v
    • Icon Source
  • Audio Files

    • Extensions: mp3, wav, aac, ogg, flac, alac, wma, m4a, ape, mid, midi, mpa, ogg, aif
    • Icon Source
  • Image Files

    • Extensions: jpg, jpeg, png, gif, bmp, tiff, svg, psd, webp, ico, heic, raw, arw, svgz, nef, orf
    • Icon Source
  • Archive Files

    • Extensions: zip, rar, 7z, tar, gz, bz2, xz, tar.gz, jar, iso, cab, rar5, dmg
    • Icon Source
  • Word Files

    • Extensions: doc, docx, odt, rtf, docm, wps
    • Icon Source
  • Spreadsheet Files

    • Extensions: xls, xlsx, ods, csv, xlsm, xlt, xlm
    • Icon Source
  • Slide Files

  • Design Files

    • Extensions: psd, ai, sketch, eps, indd, xcf, dwg, svg, fig, cdr, afdesign, stp, 3ds, iges, max
    • Icon Source
  • Torrent Files

  • External (Local Filesystem) Files

Thank you

@sailKiteV in Obsidian Discord (https://discord.gg/obsidianmd) for helping me out and providing a first SCSS draft of my initial CSS version.

About

Improves the way linked files are displayed in Obsidian, making them beautifully distinct from notes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages