Code Monkey home page Code Monkey logo

emojify's People

Contributors

cremno avatar dantehemerson avatar grenderg avatar jackdanger avatar juergenhoetzel avatar lord63 avatar louib avatar mrowa44 avatar r3b311i0n avatar wreppun avatar zmwangx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emojify's Issues

I created a key binding for i3wm for getting an emojified string

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"

Preserve whitespace characters

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

This made me stupidly pleased this morning.

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!

Command not found

/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

Spaces following emoji on OS X

Great script. It appears that trailing spaces are being stripped or otherwise not displaying on OS X. Here's a screen shot using iTerm 2, but I've tried it with the built-in Terminal as well; same result. I'm running OS X 10.10.5

screenshot 2015-07-31 09 06 08

Chopsticks emoji

Hello,

I was wondering if you can add the chopsticks emoji into this package?
Thanks!

Support for ZSH shell

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.

How to use emojify with espanso

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?

emojify ":heart::sparkles:"

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!

Homebrew version is still 1.0.2

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.

Images not displaying in Gnome terminal

Hi,

On my system, not all characters are being rendered properly. Could it be due to the font?
I have the default font enabled (Monospace 12). The character encoding is UTF-8.
I'm using Ubuntu 14.04.2 LTS with the Gnome Terminal 3.6.2.

image

Add :card_file_box: (๐Ÿ—ƒ) Emoji

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. ๐Ÿ™‚

Emojis are causing width issues in the prompt

See the video below for what happens when you display an emoji using emojify on the prompt. The first part uses emojify :smile: and the second part uses echo :); everything else remains constant.

emojify messed up prompt

Any ideas?

Alias doesn't works

git log --oneline --color | emojify, It works!
works

I add lg = log --oneline --color | emojify to my ~/.gitconfig, then run git lg:
alias
fatal

Must be like log = ! git log --oneline --color | emojify?

Handle punctuation chars

Current behaviour:

echo "Enter the :airplane:!" |./emojify 
Enter the :airplane:!

even though I don't see an easy solution to this (adding to IFS...)

Skip/Ignore Existing Unicode Emoji Characters

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

Does emojify remove spaces after emojis? Issue with :pencil2:

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

Results in:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.