summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions/ffindd.fish8
1 files changed, 8 insertions, 0 deletions
diff --git a/functions/ffindd.fish b/functions/ffindd.fish
new file mode 100644
index 0000000..5dc2222
--- /dev/null
+++ b/functions/ffindd.fish
@@ -0,0 +1,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