Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add custom icon pack without prefix #73

Open
d9k opened this issue May 31, 2023 · 4 comments
Open

Ability to add custom icon pack without prefix #73

d9k opened this issue May 31, 2023 · 4 comments

Comments

@d9k
Copy link

d9k commented May 31, 2023

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

There is no 🗣️ (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
Copy link
Author

d9k commented Jul 4, 2023

@aidenlx, please check this issue 🥺

@d9k
Copy link
Author

d9k commented Oct 2, 2023

(Very powerful summoning spell of @aidenlx)

@d9k
Copy link
Author

d9k commented Nov 3, 2023

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
Copy link
Author

d9k commented Nov 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant