Giter Site home page Giter Site logo

gimoji's Introduction

gimoji

Build Status

./screencast

A CLI tool that makes it easy to add emojis to your git commit messages. It's very similar to (and is based on) gitmoji-cli but written in Rust.

Installation

Fedora (>= 37)

sudo dnf install gimoji

Other OSes

cargo install -f gimoji

Usage

gimoji is primarily intended to be used as a git prepare-commit-msg hook. Once installed, ask gimoji to install the hook in your repository:

cd /path/to/your/project/
gimoji --init

Now, whenever you run git commit, gimoji will kick in and prompt you to choose an emoji.

If you launch gimoji directly without any arguments, it will prompt you to choose an emoji and then copy your choice to the system clipboard.

Use --help to see all the available options.

Rationale

gitmoji-cli while being a great tool, can be considerably slow. Hence this project. gimoji has a few differences:

  • it will launch a full-screen terminal UI to choose an emoji, hence emojis on the console.
  • it will only add an emoji prefix to the commit if one is not already present in the commit message (e.g when using -m option of git commit, or when amending a commit).
  • it does not add anything other than an emoji (like scope, summary etc.) to the commit message and lets you do that in your preferred editor.
  • Unlike gitmoji-cli that downloads and caches its emoji database at runtime, gimoji uses a pre-compiled database that is included in the binary itself, hence it's much faster to start up and does not need Internet access.

The philosophy here is to enable you to quickly and easily choose an emoji and get out of your way.

License

MIT

gimoji's People

Contributors

zeenix avatar renovate[bot] avatar maxverevkin avatar jonlinkens avatar whot avatar badboy avatar a-kenji avatar

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.