aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/url_search.sh3
1 files changed, 1 insertions, 2 deletions
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