fzf-ex is a command-line fuzzy finder for all module names in an Elixir Mix project. It's powered by fzf and bat.
fzf-ex-preview.mp4
-
Ensure that fzf and bat are installed:
brew install fzf bat
-
Clone repo to
~/.fzf-ex
git clone https://github.com/hauntedhost/fzf-ex.git ~/.fzf-ex
-
Add PATH to
.zshrc
or.bashrc
, etcPATH="~/.fzf-ex:$PATH"
-
(Optional) Bind CTRL+S to launch search
# ~/.zshrc run-fzf-ex() { echo "" fzf-ex echo "\n" zle reset-prompt } zle -N run-fzf-ex bindkey '^S' run-fzf-ex
# ~/.bashrc (untested) run_fzf_ex() { echo "" fzf-ex echo -e "\n" PS1="$PS1" } bind -x '"\C-s": run_fzf_ex'
In the root of any Elixir Mix project press your bind key from step #3 above, or manually run:
$ fzf-ex
On the first run it will create the index. After 24 hours it will prompt you to reindex. You can reindex manually anytime with:
$ fzf-index