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)