
Insert emoji and custom icons with shortcodes
.bmp, .png, .jpg, .jpeg, .gif, .svg, and .webp):book to find 📖(:open_book:) and 📗(:green_book:)Inspired by obsidian-emoji-shortcodes, obsidian-icon-folder, obsidian-icons and remark-emoji.
NOTE: since v0.7.0, Font Awesome and RemixIcon are no longer bundled as bulti-in icon packs to reduce bundle size and speed up the loading. Go to the setting tab to download them.
Note: this plugin may conflicts with obsidian-emoji-shortcodes, disable it before using this plugin
This plugins support GitHub favored emoji shortcodes, the full list of which can be found here: Emoji Cheat Sheet
:/:: followed by the search query to get suggester, for example :book+ between words, for example :open+booksupport icon format:
.bmp,.png,.jpg,.jpeg,.gif,.svg,.webp
Custom Icons section, type in a name for new icon pack and click add button (better be short, it's acting as the id of icon pack and prefix of all icon shortcodes in this pack)select file to import button to import custom iconsmanage icon. each icon has the following buttonstar: remove _1 suffix, useful when there are multiple alternative iconsdelete, renamev0.6.0+ required
Since v0.6.0, all custom icons are stored in icons folder under config directory (.obsidian/icons normally), you can:


In order to customize the icons in order to change their color, size, etc, you should make a CSS snippet.
.isc-icon > *:first-child {
/** changes for all icons. */
}
.isc-icon.icon-emoji-icon > *:first-child {
/** changes for emoji icons. */
}
.isc-icon.isc-fas > *:first-child {
/* changes for icons in the specific icon pack */
/* (font awesome soild in this example) */
}
Your changes will now be applied and you can edit the file when you want.
npm i -D @aidenlx/obsidian-icon-shortcodes in your plugin dirimport { getApi } from "@aidenlx/obsidian-icon-shortcodes")getApi() !== undefined or getApi(YourPluginInstance) !== undefinedgetApi() / getApi(YourPluginInstance)For all exposed API method, check api.ts
The required API feature is only available for Obsidian v1.0.0+.
To install a pre-release, download and enable the Obsidian42 BRAT plugin, add the beta repository aidenlx/obsidian-icon-shortcodes, and then have BRAT check for updates.
<vault>/.obsidian/plugins/obsidian-icon-shortcodesNote: The
.obsidianfolder may be hidden. On macOS, you should be able to pressCommand+Shift+Dotto show the folder in Finder.
Not yet available
Settings > Third-party pluginBrowse community pluginsInstall