]> Sergey Matveev's repositories - dotfiles.git/blobdiff - bin/bin/tmux-fzf.zsh
Let's try bfs
[dotfiles.git] / bin / bin / tmux-fzf.zsh
index eb66b31d90a53be5d5d96d7220132f6a38c386f6..bdf316c331383d96c55550682a00653b8369478e 100755 (executable)
@@ -7,7 +7,9 @@ trap "rm -f $tmp" HUP PIPE INT QUIT TERM EXIT
 
 case $1 in
 (find)
-    find . -mindepth 1 -path "*/.git" -prune -o \
+    bfs . -mindepth 1 \
+        -path "*/.git" -prune -o \
+        -path "*/.redo" -prune -o \
         \( -type f -o -type d -o -type l \) -print |
     cut -c3- | fzf -m --preview="less -N -S {}" |
     while read fn ; do print ${(q)fn} ; done > $tmp