]> Sergey Matveev's repositories - dotfiles.git/commitdiff
I find buf-files too seldom
authorSergey Matveev <stargrave@stargrave.org>
Sun, 26 Dec 2021 14:56:12 +0000 (17:56 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 27 Jan 2022 11:35:14 +0000 (14:35 +0300)
tmux/.tmux.conf
tmux/bin/pe [deleted file]
tmux/bin/tmux-fzf.zsh

index 20bec23cc06dda0f4b45b6f50ee8d3d964d0d04d..3623ea3d685be6d88ecd73d692ccad89b9b9e8f8 100644 (file)
@@ -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 (executable)
index 9777ecb..0000000
+++ /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
index 7f119cb64096b03053b4953354533241a1c29304..2eff748fa4f987497a95db223907629a1f46ff0a 100755 (executable)
@@ -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)