-
-
Notifications
You must be signed in to change notification settings - Fork 91
-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Support SF Symbols in the same way as emojize #46
Comments
We already have it in a form of |
Yes, that works great, but it only works for adding symbols to the beginning of a line. I'd like to be able to use them throughout a line of text as well. |
Quick take, this:
Kind of working:
|
I was able to make the icons white by embedding them into a
|
I have no idea what I'm doing, but this seems to be working 🤔
|
That looks great! |
I'm using this in the new beta and it works, but I've noticed a color mismatch. I'm using Big Sur and of course it dynamically chooses menu bar text color (black or white) based on the contents of the wallpaper. I'm in a mode where all the text is white, but the SFsymbol, which appeared white when using the old method, now displays as black with this method. (The text I've added after the SFsymbol is white!) More broadly--and forgive me if this is being addressed elsewhere, I didn't see it--I feel like there needs to be a way to deal with Big Sur dynamically changing the text in the menu bar. In Catalina I could just detect the existence of Dark Mode and adjust text colors appropriately, but I don't seem to be able to do that in Big Sur? |
Actually I have to add another data point! :smoke: was black but :wind: shows as white. WHAT. Anyway, something weird there. |
Another issue. there is a namespace collision between emoji code and SFsymbol code, so |
This was fixed after I published the beta, I referred to it in this thread ☝️ I will push another build this weekend, stay tuned.
Let me think about that, meanwhile you can disable emoji rendering, this should give you SF Symbol. |
We could use a different syntax for SFSymbols to avoid collisions. |
I don't know, for some reason I like that we offer a uniform syntax for these two. Should we support having emoji and SF Symbols in one line at the same time? It looks quite weird. |
That's fair. I don't see why anyone would want to use both SFSymbols and emoji on the same line. If they wanted to they could always use the actual emoji instead of the decoded syntax. |
Okay, but if I do |
This is actually what I've done with emojis up to now. Worked fine. |
I guess I was thinking that if you enabled symbolize it would automatically disable emojize. |
Sorry, I think I just confused everyone:
|
I'm definitely confused, but as long as there's a way to turn on symbols and turn off emojis so that collisions it'll work. Still might be easier to just keep them both on with separate reference methods, though. So I could do |
The real issue is I'm not 100% sure why we need emoji shortcuts since files will accept emojis as characters? Shortcuts are nice but they're a convenience since you can just drop in the emoji, whereas there's no other way to reference SFSymbols. I guess that would be my argument for giving SFSymbols priority, but the important thing is to just make a decision. 😉 |
New behavior: SF Symbols have priority, emoji will work only if SF Symbols explicitly disabled. |
I really like the look of SF Symbols compared to emoji. I would like to add them to my plugin the same way you do using the emojize feature. It's possible to paste the SF Symbol into your output script, but this only works if you have the SF Symbols app installed and not all editors can display them.
Proposal:
Add support for SF Symbols using a similar mechanism to
emojize=true
Possible solution:
Add an SF symbol to plugin output by using its system name as a token, eg.
:square.and.arrow.up:
.App would replace occurrences of these tokens with an SF Symbol if
symbolize=true
The text was updated successfully, but these errors were encountered: