An oh-my-zsh plugin that adds fuzzy search for directories "warped" with WD Zsh plugin.
- Oh My Zsh
- Fuzzy finder
- WD plugin
-
Clone repository into Oh My Zsh custom plugins directory:
git clone https://github.com/spodin/zsh-fuzzy-wd.git ~/.oh-my-zsh/custom/plugins/zsh-fuzzy-wd
-
Enable it by adding
zsh-fuzzy-wd
to the plugins array in~/.zshrc
:plugins=( ... zsh-fuzzy-wd ... )
-
Add directories as warp points using WD plugin, e.g.:
cd ~/Documents wd add docs
-
Press
^B
to activate plugin, filter paths by typing and pressEnter
to change directory.
To rebind default activation key (^B
) one of methods below can be used:
-
Add this to your
~/.zshrc
config:bindkey -r "^B" # unbind (optionally) bindkey '^G' fuzzy_wd_widget # bind to Ctrl+G
-
Set
FZF_WD_BINDKEY
environment variable:export FZF_WD_BINDKEY="^G"