Giter Site home page Giter Site logo

emoji-cli's Introduction

emoji-cli provides input completion for emoji on the command line with an interactive filter.

๐Ÿ“ Description

Emoji (็ตตๆ–‡ๅญ—, Japanese pronunciation: [emodส‘i]) are the ideograms or smileys used in Japanese electronic messages and Web pages, that are spreading outside Japan (ref: Katy Perry - Roar (Lyric Video)).

Emoji are funny and make us want to use it ๐Ÿ˜Š. However, it is hard to use it on the command line. This is because the command line don't have input completion for emoji. Therefore, I developed this command line application emoji-cli.

DEMO:

:trollface: Features

  • ๐Ÿ˜ฑ Emoji on the command line
  • ๐ŸŒ Interactive filter
  • ๐Ÿ”Ž Fuzzy search

Unfortunately, this application supports Z shell only now ๐Ÿ™‡.

๐Ÿ” Usage

To insert emoji to the command line, type ctrl-s ( ^s ).

$ git commit -m 'This docume^s ...

To collaborate emojify similar to emoji-cli in emoji appication:

echo ":santa^s" | emojify
๐ŸŽ…

๐Ÿ“ฆ Installation

$ git clone https://github.com/b4b4r07/emoji-cli
$ source ./emoji-cli/emoji-cli.zsh

For zplug user:

$ zplug "b4b4r07/emoji-cli"

Dependencies

๐Ÿบ Using Homebrew

On macOS you can install the dependencies via Homebrew:

brew install jq fzf peco

๐Ÿ”ง Setup

EMOJI_CLI_DICT

It is defaults to ./dict/emoji.json. EMOJI_CLI_DICT is a path to dictionary of emoji database file. It is written in JSON.

EMOJI_CLI_FILTER

It is defaults to fzf-tmux -d 15%:fzf:peco:percol. EMOJI_CLI_FILTER is the interactive filter command in order to use select emoji. It is separated by colon like the PATH environment variable.

EMOJI_CLI_KEYBIND

It is defaults to ^s (ctrl-s). EMOJI_CLI_KEYBIND is the key binding to start the input completion for emoji.

EMOJI_CLI_USE_EMOJI

Set this variable to non-null to have the widget return the actual emoji

๐ŸŽซ License

MIT ยฉ BABAROT (a.k.a. b4b4r07)

emoji-cli's People

Contributors

5t111111 avatar b4b4r07 avatar babarot avatar juliogc avatar koic avatar krokofant avatar wrboyce 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

emoji-cli's Issues

Confusion about dependency

The dependency text states that it needs An interactive filter (...) but it seems it needs both the listed ones. Is this the case?

Right now it fails silently if one tries to load it directly like a oh-my-zsh plugin with missing deps and to get the missing deps error one need to source them manually. Is it a convention for plugins to fail silently? If not it would be great to see the errors more clearly

Does not work

I installed the plugin as mentioned on the README.md and added it to my plugins list. However when I type:

echo "Hey there! :smile:"

It simply prints Hey there! :smile:.

List glitched on Hyper

The list view it's not displayed well as on the standard terminal ๐Ÿค”

Here a couple of examples:

  • screen shot 2017-09-29 at 16 29 23

  • screen shot 2017-09-29 at 16 30 08

Some emojis aren't displayed

I don't know why but some emojis aren't displayed when hitting ctrl+Z (I'm using fzf) ... ๐Ÿ˜ž

โฌ‡๏ธ, โฌ†๏ธ, โœจ and probably others

Not works on Arch

Hey,

Thanks for awesome .zsh plug-in! But unfortunately, it didn't work on my Arch. It shows up fwd-i-search: when i press CTRL+S. I installed it via antigen.

Terminal: Alacritty

Thanks

Support search by all aliases

Currently only the first alias seems to be matched against

Sadly my shellscript-foo is horrible so I don't know how to fix it myself

:hankey:
:poop:
:shit:

How do I get ACTUAL emojis into the CLI?

Default usage just prints the name of the emoji -- which kinda defeats the purpose of having an helper to type emojis:

recording

The README explains that piping through emojify works to print a character, but I'm not trying to print one, I'm trying to type one.

E.g.:

git commit -m "First release ๐Ÿš€"`

Trying to do this via piping to emojify is ridiculously verbose and, well, totally unnatural (especially since I have to jump to the start of the line to add a $( to actually get this to run:

$(git commit -m "First release ^s:pand<Enter>" | emojify)"

Might it be possible to get an environment variable to actually print the selected emoji?
The current form makes usage too complicated (at least IMHO).

Have trouble on ubuntu 16.04

Thanks for your brilliant work. I have a problem making the tool work.

After installation when I hit Ctrl+S, nothing appears and the terminal is frozen(double Ctrl-C can exit the status).
following is my zplug config.

zplug "b4b4r07/emoji-cli", on:"junegunn/fzf-bin", if:'(( $+commands[jq] ))'                                                
EMOJI_CLI_FILTER=fzf:peco:percol

I examine the key-binds but seems problem is not here.

$ bindkey | grep "\^S"                                                                                                                      ~
"^S" emoji::cli

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.