aidenlx / obsidian-icon-shortcodes

Obsidian Plugin: Insert emoji and custom icons with shortcodes
MIT License
138 stars 11 forks source link

Ability to add custom icon pack without prefix #73

Open d9k opened 1 year ago

d9k commented 1 year ago

I use obsidian-icon-shortcodes without Replace emoji shortcode with emoji character option bacause I want cross-editor compatibility.

There is no :speaking_head: (speaking_head) emoji avaiable in Obsidian. There is :speaking_head_in_silhouette: which doesn't work in Github.

So in extension settings I created an icon pack named extraemojis and add speaking_head.png to it speaking_head

This new emoji correctly appears in list as speaking_head but when I select it, it transforms to :extraemojis_speakinghead:! If I remove prefix `extraemojis` icon image in my markdown page icon will stop to show in Obsisian.

Please provide ability to have icon pack without prefix!

d9k commented 1 year ago

@aidenlx, please check this issue :pleading_face:

d9k commented 10 months ago

(Very powerful summoning spell of @aidenlx)

d9k commented 8 months ago

Maybe it would be better to just add ability to set aliases { [desired_name]: existing_name } for full name with prefixes in config.

Example:

{
  "aliases": {
    "speaking_head": "speaking_head_in_silhouette"
  },
  "code2emoji": false,
  "suggester": true,
  "disabledPacks": [
    "test"
  ],
  "triggerWithTrailingSpace": false,
  "spaceAfterSC": false,
  "isMigrated": false
}
d9k commented 8 months ago

Seems Custom emojis or aliases are not supported by node-emoji yet: Custom emoji | node-emoji issue #95