]> Sergey Matveev's repositories - dotfiles.git/blobdiff - tmux/.tmux/functions.zsh/tmux-fzf-find
Refactored tmux fzf menus
[dotfiles.git] / tmux / .tmux / functions.zsh / tmux-fzf-find
diff --git a/tmux/.tmux/functions.zsh/tmux-fzf-find b/tmux/.tmux/functions.zsh/tmux-fzf-find
new file mode 100644 (file)
index 0000000..c114afd
--- /dev/null
@@ -0,0 +1,6 @@
+bfs -L . -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