mdelobelle / obsidian_supercharged_links

obsidian plugin to add attributes and context menu options to internal links
MIT License
502 stars 33 forks source link

Allow using icons from the Obsidian Icon folder #187

Open HEmile opened 1 year ago

HEmile commented 1 year ago

From Obsidian forum:

Hi. Is there any way to get Icons (from the Obsidian Icons folder that Icon Folder, Icons and Icon Shortcodes plugins use)?

If not is there any possibility of this being a future possibility? This would be really useful as these are generally far nicer than the OS emojis.

jpbruckler commented 1 year ago

With some work, SVG icons can be used.

a.internal-link[data-link-type="ttrpg-pc"]::before{
    display: inline-block;
    content: url("data:image/svg+xml,<url encoded svg>");
    margin-right: 0.5em;
    filter: invert(44%) sepia(88%) saturate(680%) hue-rotate(153deg) brightness(94%) contrast(103%);
}
albertoloscerritos commented 3 months ago

+1 very good idea

PencilMing commented 1 month ago

Thank you very much