Emoji
π Rocket is an excellent free Mac app that makes emoji input easy. It's possible to insert emoji natively on macOS but it's kind of a pain:
- Cmd + Ctrl + Space
- Search for the emoji
- Tab to it and press Enter or click it
With the π Rocket app, just:
- type
:rock
and press Enter
LOL -- it does make vim
annoying to use.
Can I use emoji there?¶
- JQplay (and
jq
)
Given this JSON:
{
"π»": [
{
"πͺ": [
{
"π»": "π"
}
],
"π": [
{
"π»": "π"
}
],
"π©ββοΈ": [
{
"π»": "π"
}
]
}
]
}
I can use a command like jq '."π»"[0] | .["πͺ"]'
for this result:
[
{
"π»": "π"
}
]
π Give it a go!
Others have written about it:
Mermaid is a JavaScript-based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams.
Mermaid is amazing and supports emoji. It's particular, though.
The fix that is π loved doesn't work in the version of the editor available at mermaid.live
-- four years later. But this approach from 2019 works at mermaid.live
and in GitLab Flavored Markdown. :
graph TD
A["π¦"]---B["π"]
A-->C("π₯°")
B-->D
C-->D("π±")
D-->E{"π"}
Here's how that gets rendered:
π Great Emoji in Code¶
π A new section.
https://github.com/eoin-barr/weatherme/blob/master/cmd/root.go