Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.08 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.08 KB

gitmoji-selector

Gitmojis taken from: https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/data/gitmojis.json

Installation

With the rust toolchain installed

  • if you have the source navigate to the source directory (same as this README), then run the following command:
cargo install --path=. --force

External dependencies

fzf with fzf-tmux. Also assumes you run this in tmux.

Use in vim

Add this line to your .vimrc or init.vim. With <Leader>j in normal mode, you can select a gitmoji and insert it at the current cursor position.

nmap <Leader>j "=system('gitmoji-selector')<C-M>P

You can of course change what keys it is bound to.

Use in Emacs

You can add this function to your Emacs configuration:

(defun gitmoji-selector ()
  (interactive)
  (insert (shell-command-to-string "gitmoji-selector")))

Bind it to a keybinding, for example if using evil-leader:

(evil-leader/set-key
  "e" 'gitmoji-selector)