Crates.io | gmocli |
lib.rs | gmocli |
version | 1.1.0 |
source | src |
created_at | 2023-12-16 21:21:40.563063 |
updated_at | 2024-03-01 02:54:33.599394 |
description | gmocli provides a command-line interface for searching emoji characters with associated gitmoji descriptions. |
homepage | |
repository | https://github.com/duhdugg/gmocli/ |
max_upload_size | |
id | 1072011 |
size | 1,418,376 |
gmocli provides a command-line interface for searching emoji characters with associated gitmoji descriptions.
It uses combined data from Mange/emoji-data and carloscuesta/gitmoji.
Homepage: https://github.com/duhdugg/gmocli
Usage: gmocli [OPTIONS] <search>
OPTIONS:
-h | --help print this help
-l | --list list all emoji characters
-i | --info include info
-n | --name match name exactly
--version print version and exit
gmocli -li
gmocli -i dog
# output
🐶 dog face | Animals & Nature / animal-mammal | dog,face,pet
🐕 dog | Animals & Nature / animal-mammal | dog,pet
🦮 guide dog | Animals & Nature / animal-mammal | accessibility,blind,guide,guide dog
🐕🦺 service dog | Animals & Nature / animal-mammal | accessibility,assistance,dog,service
🐩 poodle | Animals & Nature / animal-mammal | dog,poodle
🌭 hot dog | Food & Drink / food-prepared | frankfurter,hot dog,hotdog,sausage
if the name is more than one word, it should be enclosed in quotes
gmocli -n 'guide dog'
# output
🦮
git commit -m "$(gmocli -n rocket) production launch"
For interactive searching, you can pipe the output of gmocli -li
to something
like dmenu, fzf, or rofi as follows:
gmocli -li | fzf | cut -d' ' -f1 | tr -d '\n' # | xclip or whatever
Your mileage may vary on terminal support for displaying emoji consisting of 2 or more characters joined by a zero-width joiner character (U+200D). The "service dog" emoji (🐕🦺) is one such example. Even with a proper font config, it will appear on many terminals as a dog next to a safety vest (🐕🦺).
Currently, the best configuration tested with gmocli -li
is the wezterm terminal with the Noto Color Emoji font installed and configured in your fontconfig. kitty also works well.
This software is released under the MIT License. See LICENSE
for details.
This software includes source files from third party components, Gitmoji and Unicode CLDR. Each of these components have their own license. See data/gitmoji/gitmoji-license.txt
and data/emoji/unicode-license.txt
.
Pull requests are welcome at https://github.com/duhdugg/gmocli/pulls
Submit issues at https://github.com/duhdugg/gmocli/issues