Gitmojis taken from: https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/data/gitmojis.json
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
- directly from git: cargo install --git=https://github.com/tomhoule/gitmoji-selector --force
fzf with fzf-tmux. Also assumes you run this in tmux.
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.
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)