Awesome
zsh-fuzzy-wd
An oh-my-zsh plugin that adds fuzzy search for directories "warped" with WD Zsh plugin.
<img width="650" alt="zsh-fuzzy-wd-demo" src="https://user-images.githubusercontent.com/8811713/138357543-0633e8ca-2f33-458f-b098-29384680580b.gif">Requirements
- Oh My Zsh
- Fuzzy finder
- WD plugin
Installation
-
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 ... )
Usage
-
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.
Rebind activation key
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"