summaryrefslogtreecommitdiff
path: root/functions/ffindd.fish
blob: 5dc222284597d3767798b40d66a4ea00c2eb3f42 (plain)
1
2
3
4
5
6
7
8
# Fuzzy find directories
function ffindd --description 'Find for directories but fuzzy'
  set -l dir (find */ .*/ -not \( -name ".git" -prune -o -name ".go" -prune -o -name "node_modules" -prune \) -type d 2>/dev/null -print | fzf)
  cd $dir
  commandline -f repaint
end

bind \cf ffindd