From: Sergey Matveev Date: Sun, 26 Dec 2021 14:56:12 +0000 (+0300) Subject: I find buf-files too seldom X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=a1c11e1b2ac1d730148d5b0e47c53c7e2d74db87 I find buf-files too seldom --- diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 20bec23..3623ea3 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -65,7 +65,6 @@ bind-key t display-menu \ bind-key o display-menu \ find o "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh find '#{pane_current_path}'\"" \ - buf-files f "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh buf-files '#{pane_current_path}'\"" \ git-files g "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh git-files '#{pane_current_path}'\"" \ git-branches b "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh git-branches '#{pane_current_path}'\"" \ git-commits c "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh git-commits '#{pane_current_path}'\"" diff --git a/tmux/bin/pe b/tmux/bin/pe deleted file mode 100755 index 9777ecb..0000000 --- a/tmux/bin/pe +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/zsh - -typeset -A seen -path-extractor | while read fn ; do - [[ $seen[$fn] -eq 1 ]] && continue - seen+=($fn 1) - print $fn -done | fzf -m diff --git a/tmux/bin/tmux-fzf.zsh b/tmux/bin/tmux-fzf.zsh index 7f119cb..2eff748 100755 --- a/tmux/bin/tmux-fzf.zsh +++ b/tmux/bin/tmux-fzf.zsh @@ -14,13 +14,6 @@ case $1 in 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)