Skip to content

conformism/gitmoji-selector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

gitmoji selection with fzf+tmux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%