]> Sergey Matveev's repositories - dotfiles.git/blobdiff - tmux/bin/tmux-fzf.zsh
More compact macro binding
[dotfiles.git] / tmux / bin / tmux-fzf.zsh
index bdf316c331383d96c55550682a00653b8369478e..2eff748fa4f987497a95db223907629a1f46ff0a 100755 (executable)
@@ -7,20 +7,13 @@ trap "rm -f $tmp" HUP PIPE INT QUIT TERM EXIT
 
 case $1 in
 (find)
-    bfs . -mindepth 1 \
+    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 > $tmp
     ;;
-(buf-files)
-    tmux capture-pane -J
-    tmux save-buffer $tmp.capture
-    trap "rm -f $tmp.capture" HUP PIPE INT QUIT TERM EXIT
-    tmux delete-buffer
-    pe < $tmp.capture > $tmp
-    ;;
 (git-files) git status --short | fzf -m | perl -npe 's/^\s*\S+\s+//' > $tmp ;;
 (git-branches) { git branch ; git branch --remote } | fzf > $tmp ;;
 (git-commits)