phibr0 / obsidian-emoji-shortcodes Goto Github PK
View Code? Open in Web Editor NEWEmoji Shortcodes - Obsidian Plugin | Adds Support for Emoji Shortcodes to Obsidian
License: MIT License
Emoji Shortcodes - Obsidian Plugin | Adds Support for Emoji Shortcodes to Obsidian
License: MIT License
Hello!
A user in a repo I help manage, https://github.com/javalent/settings-search, is having issues with our plugin. During the course of testing, I noticed some inconsistencies with how setting search was retrieving the contents of Emoji Shortcodes' settings. As Settings Search is meant to address a gap in keyboard functionality, and meant to provide more accessibility to users, I am bringing it to your attention.
For example, searching the entire plugin by front-facing name (Emoji Shortcodes versus Obsidian Emoji Shortcodes or even Emoji-Shortcodes) should bring up the option to open most of the settings as well as go to the community settings page. In my testing, it brings up more options when searching emoji, than emoji shortcodes, and it does not offer the community page or settings at all. I use dataview as a counter-example in the gif below. As settings
Should you choose to implement this feature request, the API to add Setting Search Functionality is very basic, and found on our Publish Documentation (By the time you get to this, the main readme may have changed). Additionally, if you have any questions about implementation, feel free to reach out to javalent#3452 on The Obsidian Discord or @valentine195 here on Github.
Thank you for your time, and happy coding!
On my MAC and Windows PC, when I call the open command palette from Obsidian task bar, enter EM and select Emoji toolbar, it opens, but does not write the selected emoji.
Theme Things and default. Version 1.0 Obsidian and latest Emoji toolbar
When I use the hotkey I setup Emoji toolbar writes the correct Emoji......
I tried to use this plugin by writing the name but it didn't gave the same result according to how I wrote it. I don't really know how to explain it so here is a screenshot of some tests. (left edit, write preview)
In the first case, I insert the emoji after writing the whole sentence.
I'm using Ubuntu 20.04.2 LTS
Obsidian 0.12.12
Emoji Shortcodes 1.4.0
Thanks
Ccile
I have no idea on how it should work but I think I would prefer to have the small picture in both view : edit and preview.
My second choice would be the name in edit and the small picture in preview.
:
.:
something like that : emoji doesn't work
:
First of all, I and very thankful for this plugin ⭐ . I enjoy using emojis in my notes as the small images make some content more easily communicated.
However, during usage of the plugin, I noticed, that the order of the suggesting emojis when starting a shoartcode :
is sub-optimal.
Consider these shortcodes: star
, heart
, x
and right
When using the first three, I expect, that after typing it out, the top-most suggestion is the most specific one corresponding to it.
e.g. for star
I expect the star
⭐ suggestion to be top-most. However, we see a different list:
The same problem also appears with the other shortcodes.
This is less helpful, as sometimes we need to scroll down a lot to see the right emoji.
For the prefix right
, we get these suggestions:
However, I think it's better, when shorter completions such as arrow_right
, fist_right
and copyright
are higher prioritised than the other ones. Generally, if the suffix needed to complete the shortcode is short, then the emoji should be higher on the list.
And for the case of x
, if the emoji is short alltogether and has a relatively large matching with the prefix shortcode, then it should be also higher on the list.
Most other existing emoji shortcode suggestion lists seem to return, what I would intuitively expect. For instance, when writing an issue comment, the github emojis suggest this:
Could we have the shortcodes prioritised differently?
What do you think? ⭐
If there is need, I could provide some help.
This issue relates to: #31
If the new live preview version does not work well with the legacy mode. Is it possible that the user can select which version to use in the plugin setting?
Hi. I like this handy plugin but I ran into some bugs in using it. Here are the reports (in the given example below, the cursor position is symbolized by ▊):
:
, the Immediate Emoji Replace function will fail in recognizing the emoji shortcodes at the cursor.
e.g., it fails turning
[:link:▊Title](https://aaa.com)
into[🔗▊Title](https://aaa.com)
:
, the Emoji Suggester will fail in inserting selected emoji correctly.
e.g., if we type
[:▊Title](https://aaa.com)
to trigger the Emoji Suggester board, then click to select an emoji (say 🔗), the text will become[🔗▊//aaa.com)
, which is not what we expect to be.
`
, an alphabet or a number, you can't trigger the Emoji Suggester board by inputting a :
.
e.g., given
TryToTriggerThat▊
, then input a:
, the Emoji Suggester board will not pop up.
e.g., it fails turning
TryToTurn:link:▊That
intoTryToTurn🔗▊That
:non-shortcode
, you can't feed a new line by just pressing Enter.
e.g., given
ShowCase:PressEnter▊
, then press Enter and nothing will happen. There is a workaround: input a space or press Esc before press Enter.
:▊
with your cursor at the end of the line, you can't feed a new line by just pressing Enter.e.g.,
`console.log(":link:")`
is at a risk of being turned into`console.log("🔗")`
(both in edit mode and preview mode)
Hopefully, I have read the source code (.obsidian/plugins/emoji-shortcodesmain.js) and I think I can fork the repo and help fixing these problems. If things go well, I will submit a pull request in next 2-3 days.
In a blank new note I start typing a colon ( : ) and continue typing an s, then an m, then an i, ... nothing pops up like I see it in the animated GIF in the readme ... 😳
What does work is: when I finished typing :smile:
the rendered view (the preview/reading pane) shows the smile emoji.
(Would love to add an animated GIF that shows this but don't know how to make one (with reasonable effort)).
Using Obsidian 0.15.3 Insider build on macOS Monterey 12.4 on an intel Mac, btw.
The emoji suggester is very nice and I often use it to quickly select certain emoji I use that have long names to save time. One of these is ✅ or : white_check_mark : , but by default this is at the bottom of the suggestions list. I'd prefer to get the last used emoji in the search first so I can quickly get this.
Hi!
Has there been any Obsidian update that is making this plugin defunct?
I couldn't find in the Obsidian Community Plugins.
I manually download the source code and pasted into the plugins folder but when I try activating it says "failed to load the plugin"
Can you guide me if there's something wrong?
Thanks!
Thank you for the extension, but it would be nice to access all the emoji (if, for example, you do not remember its abbreviation as I do) by some reduction, for example:
:?
well or some other in the same vein
Would love to have at least the option of not triggering this if the colon isn't preceded by a space. When trying to type a time of day (10:00, 4:30) the plugin is triggered, and if one doesn't pay attention, the :00 or :30 will be automatically replaced by an emoji. Another option would be to not trigger if a number comes before the colon.
(EDIT: See below) I like the immediate replace against a Unicode char, even in edit mode. Another useful one, thanks!
For some reason, emojis using an underscore in their name don’t work, try:
:purple_heart:
:broken_heart:
😀
:woman_bowing:
Maybe CM hits in, thinking an italicized word is coming?
I’ll still have to try in a naked vault, results in a moment.
EDIT: It’s the same in a new vault, with no other community plugins installed.
Using Obsidian 0.12.12, installer 0.12.10, on Linux (AppImage).
Hi,
I use a lot of emoji to indicate the type of note, 👀 for human , 📚 for book and so on, and when I try to type ":eyes:" inside [[]], I don't get any suggestion, neither in the title bar.
Thanks for all
😢
Using :heavy_check_mark:
in YAML frontmatter should render (U+2714, U+FE0F), but seems to only be rendering the first character. Using it anywhere in the normal editor renders it correctly. If adding the emoji using another method both characters are rendered, and it appears correctly as ✔️.
Though this is installable on Obsidian Mobile, but isn’t working on iPad. The text remains as in. Can anyone confirm that it does work on iOS?
When using a messaging client like Slack, you can add custom emojis to use. It would be nice to have that option with this plugin that uses custom emojis from a folder.
Is this plugin is still maintained?
I've noticed that I can't get some emojis to appear, no matter what emoji code I use.
An example is large green circle.
I've used both shortcodes suggested in the above page, but it doesn't render and/or appear on the suggestion droplist.
Unfortunately housamz json with the emojis isn't complete and I would like my circles to be super colorful.
Is it ok if I just add them to the emojiList.ts
and add a pull request? :)
I like your plugin. I use the "immediate emoji replace" option. That way I can also use the native emojis on the iphone app.
However, I just realized that I can't use the : tag completion in the search box.
When I copy and paste an emoji in the search it works.
Would it be possible to enable the : tag completion in the search box?
thanks!
It seems that isProd
detecting failed.
This file still has sourcemap.
https://github.com/phibr0/obsidian-emoji-shortcodes/releases/download/2.2.0/main.js
Hi, @phibr0 .
Thank you for your great plugin!
I would be glad if it would be great to enable the filter prefix not only to match but also partial match. In my case..
I want to insert these emojis.
Best regards.
The emoji suggester is nice, but for things like Dataview which use two colons, it's annoying to have the emoji suggester pop up. The instructions say this will only appear when typing letters, so I'm guessing this could be a quick fix to filter out any non-letters for having it appear?
Hello & thank you for this helpful Obisdian plugin!
I noticed that some country flags are only accessible (examples). Would it make sense to use both the shortcode, and name, such as :uk-united-kingdom:
, :de-germany:
, :ru-russia:
, :tr-turkey:
etc.?
As you can see, some shortcodes are less obviously derived from the full name than others, and esp. for the former, a wider search space for fuzzy matching would be neat :-)
I can not find my favorite icon till almost typed the full name. So how about showing the latest used icons in the front position?
Hi there
Since last update of the plugin (2.1.0), it seems that the plugin does not work on my iOS setup. Would you know why or if there are conflicts with other plugins?
Thanks in advance
The standard red heart aka :heart:
is not supported.
When I type :sunglasses:
I expect to see 😎 and not 🕶️
Nice work on the plugin BTW. This is a feature that should IMO be standard and is a bit of an oversight that it is not.
First of all, great addon!
I was wondering which convention you follow for the codes. I know at least three of them: github, slack, emojipedia. This would be very useful information to be added to the readme.
I am also asking because I wanted to add some missing emojis, such as the shrugging ones #18 and there the codes are all distinct.
I have both Tasks and Emoji shortcodes plugins enabled.
Typically, shortcodes work, but the popup does not appear when I type the :
trigger followed by a letter inside a task (- [ ]
). I even have autosuggestion turned off for the Tasks plugin.
Hi there, nice plugin.
I'm not sure whether to raise this here or with Dataview, but I've discovered that enabling this plugin can cause some of my dataview tables to render about 3x slower.
I've prepared a test vault.
test.zip
Just open on Dataview.md
, wait for it to render. This takes about 3 seconds on my machine.
Then, open another file and enable the plugin.
Finally, open Dataview.md
again. This takes about 9 seconds on my machine.
Thanks for your time :)
(I have also raised this with a certain theme which makes this problem even worse - but my times here were tested with the default theme.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.