obsidian-icon-shortcodes icon indicating copy to clipboard operation
obsidian-icon-shortcodes copied to clipboard

Ability to add custom icon pack without prefix

Open d9k opened this issue 1 year ago • 4 comments

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_speaking_head:! 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 avatar May 31 '23 13:05 d9k

@aidenlx, please check this issue :pleading_face:

d9k avatar Jul 04 '23 08:07 d9k

(Very powerful summoning spell of @aidenlx)

d9k avatar Oct 02 '23 01:10 d9k

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 avatar Nov 03 '23 11:11 d9k

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

d9k avatar Nov 03 '23 11:11 d9k