zsh-fuzzy-wd
July 8, 2022 ยท View on GitHub
An oh-my-zsh plugin that adds fuzzy search for directories "warped" with WD Zsh plugin.
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-wdto 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
^Bto activate plugin, filter paths by typing and pressEnterto change directory.
Rebind activation key
To rebind default activation key (^B) one of methods below can be used:
-
Add this to your
~/.zshrcconfig:bindkey -r "^B" # unbind (optionally) bindkey '^G' fuzzy_wd_widget # bind to Ctrl+G -
Set
FZF_WD_BINDKEYenvironment variable:export FZF_WD_BINDKEY="^G"