From ac723772916cce752b347ee68ef709adb0fb18f2 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 31 May 2019 14:03:59 -0600 Subject: Fixing pane-capture in script to use all history --- scripts/url_search.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/url_search.sh') diff --git a/scripts/url_search.sh b/scripts/url_search.sh index 4320a83..54a0bc3 100755 --- a/scripts/url_search.sh +++ b/scripts/url_search.sh @@ -7,8 +7,7 @@ # Description: Search tmux pane for urls then pass to fzf # for copying to clipboard -PANE_HISTORY="$(tmux capture-pane -J -p)" -URL=$(echo "$PANE_HISTORY" | perl -wnl -e '/https?\:\/\/[^\s]+[\/\w]/ and print $&' | fzf-tmux) +URL=$(tmux capture-pane -pS -30000 | perl -wnl -e '/https?\:\/\/[^\s]+[\/\w]/ and print $&' | fzf-tmux) if [[ -n "$URL" ]]; then echo "$URL" | xp fi -- cgit v1.2.3