From 00ce459f29f382cd5aeb3107036480c69edcfcc6 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Fri, 7 Jun 2024 18:18:32 -0700 Subject: [PATCH] no need for tmux-copy with wezterm --- bin/,tmux-copy | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100755 bin/,tmux-copy diff --git a/bin/,tmux-copy b/bin/,tmux-copy deleted file mode 100755 index 6d16622..0000000 --- a/bin/,tmux-copy +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env zsh - -set -euo pipefail - -TMPFILE=$(mktemp) -RG_OPTS="--word-regexp" -PATTERNS=( - "[a-f0-9]{5,}" # hex, assuming only want to copy 5+ characters - "[^\\s]+" -) -PATTERN=${(j[|])PATTERNS} - -tmux capture-pane -p -S -2 > "$TMPFILE" - -rg "$RG_OPTS" --ignore-case --only-matching "$PATTERN" "$TMPFILE" | - ruby -e 'ARGF.readlines(chomp: true).uniq.each { puts _1 }' | - fzf-tmux -p 80%,60% --layout=reverse \ - --print0 \ - --preview "rg $RG_OPTS --color=always --context=3 {} $TMPFILE" \ - --bind "enter:execute-silent(pbcopy <<< {})+abort" || true