mrowa44 / emojify Goto Github PK
View Code? Open in Web Editor NEWEmoji on the command line :scream:
License: MIT License
Emoji on the command line :scream:
License: MIT License
Hi @mrowa44
The code is 4 years old, are you open to contribution or would you suggest using https://github.com/donatj/ghemoji maintained by @donatj instead or any other tools that may exist
My point is the fact I could help in maintaining your tool, but the lack of commits make me doubtful there is a need for that.
what would you think ?
I didn't know where to share this. This is for the i3 windows manager. It opens a small prompt where the user can type some text, then press Enter, and have the emojified text copied to their clipboard.
bindsym $mod+shift+e exec i3-input -P 'emojify:' -F "exec emojify %s | tr -d '\n' | xclip -selection clipboard"
Related to #37 :
A space is 0x20:
% echo -n ' ' | hexdump
0000000 0020
0000001
Here, I'd expect to see 3x 20
, but I only see it once:
% echo -n ":sparkles: Three spaces" | emojify | hexdump
0000000 9ce2 20a8 5420 7268 6565 7320 6170 6563
0000010 0a73
0000012
Hi,
Is there a way list of emoji's from an external API rather then embedding them into this script?
Thanks,
Bash prompt:
# File: ~/.profile
# Selects a random emoji for my terminal prompt using emojify.
RANDOM_EMOJI=$(emojify -l | shuf -n 1 | sed 's/:.*//' | sed 's/ //g')
export PS1='\W ${RANDOM_EMOJI} >'
Yields:
Last login: Tue Sep 10 07:28:33 on ttys002
~ ๐ >
In case you want to add it to your docs so that others can be as well. ;)
Thanks!
/usr/local/bin/emojify: line 1: --2017-05-22: command not found
/usr/local/bin/emojify: line 2: syntax error near unexpected token (' /usr/local/bin/emojify: line 2:
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.64.133, 151.101.192.133, 151.101.0.133, ...'
P.S-I'm using ubuntu 17.04
Hello,
I was wondering if you can add the chopsticks emoji into this package?
Thanks!
Are you interested in including Bash-Completion for the emojify
command?
https://gist.github.com/juergenhoetzel/83aa567601bbb8339366d265b5470364
I downloaded the emojify script and modified the script such that the shebang is !/bin/zsh
to execute using the zsh shell and changed out the {BASH_VERSION}
environment variable for {ZSH_VERSION}
.
Upon running the script using emojify :joy
I get output:
emojify.sh:25: no matches found: [:grinning:]=\U1f600
parse_line:1: bad option: -a
to_emoji:1: bad math expression: empty string
This message comes up every time I try running the script regardless of what text I enter.
I'm aware that zsh can support basic emoji using the emoji plugin from oh_my_zsh which I have enabled, but I am unable to work out what this error message means.
Espanso expands text typed from the keyboard, and works great with emojify.
eg, I can type :heart:
anywhere, and it is replaced with โค๏ธ
.
matches:
# Emojify emoji expansion :emoji:
- regex: /:(?P<emojiName>[^:\s]+):/
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: emojify "{{emojiName}}"
Is there a wiki or KB that this could go into?
Would you please consider allowing emojis to be generated without needing an intervening space?
Current behaviour:
% emojify ":heart::sparkles:"
:heart::sparkles:
I often get on a roll with consecutive emojis and having to remove the spaces to make it look like I typed it on a phone is a bit of a bummer.
Thanks for a great app!
Any tips about Github markdown custom emoji support needed and users custom emoji support would be nice too
Just installed this via Homebrew to find stuff not working properly. Turns out the version being provided by Homebrew is 1.0.2.
Downloaded from the repo and works as expected.
Would it be possible to add this emoji?
Current:
$ echo :card_file_box: :bee: | emojify
:card_file_box: ๐
Expected:
$ echo :card_file_box: :bee: | emojify
๐ ๐
Thanks. ๐
binary search for example
For example when I run git log --color | emojify README.md
I should get the commit history of the README.md but it only output README.md
.
Current behaviour:
echo "Enter the :airplane:!" |./emojify
Enter the :airplane:!
even though I don't see an easy solution to this (adding to IFS
...)
since I'm not the maintainer, I'm unsure if I should do it.
It seems that emojify is not supporting emojis over Emoji 9.0. Will there be any release in the future?
(Note: I'd like to ๐ฆ Emoji.)
Unicode 9.0 Emoji List
Unicode 10.0 Emoji List
Unicode 11.0 Emoji List
Unicode 12.0 Emoji List
With git log --oneline --color | emojify
and ๐ Add React CSS Modules to .babelrc
as input, I'm getting an output of:
รฐ๏ฟฝ๏ฟฝ๏ฟฝ Add React CSS Modules to .babelrc
Instead of:
๐ Add React CSS Modules to .babelrc
It looks like emojify strips all spaces after an emoji. I'm not sure it is intended, and if so if that is that desirable.
I discovered the issue by using the :pencil2:
emoji, which appears to be wider than most others. As a result, while a :sparkles:
emoji gets left-aligned and still display some padding, the pencil one doesn't. To compare:
echo ":sparkles: Three spaces" | emojify
echo ":pencil2: Three spaces" | emojify
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.