obsidian-iconize
obsidian-iconize copied to clipboard
Twemoji icon missing in "Drag to rearrange"
Describe the bug When a twemoji is set as the icon of a note, it is not visible in the rearrange icon of the editor. It does remove the default icon.
To Reproduce Steps to reproduce the behavior:
- Create a note.
- Set (any) twemoji as its icon.
- Open the file to see the missing icon.
Expected behavior I expect to see the twemoji as the drag icon. It is a bug as the default "file" icon is removed.
Screenshots
Current behaviour.
Expected behaviour.
Additional context The problem is here: https://github.com/FlorianWoelki/obsidian-icon-folder/blob/a1541addf18954f9735281286a2a5e9b01b7d598/src/util.ts#L266-L269
When the icon is a twemoji the function returns an empty string and the icon is completely removed. I have already implemented a quick solution shown in the expected behaviour screenshot. Maybe is not the best one but works. If you are comfortable with me submitting a pull request let me know 😄.
Thanks for reporting!
Feel free to open a Pull Request for that :)