diff options
author | Cody Hiar <codyfh@gmail.com> | 2019-05-31 14:03:59 -0600 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2019-05-31 14:03:59 -0600 |
commit | ac723772916cce752b347ee68ef709adb0fb18f2 (patch) | |
tree | 3b9d313513b365ecca246189b4c08a2aa24986ce /scripts | |
parent | 1629850195ab01c81a45921ffd2f82f2ee269bbd (diff) |
Fixing pane-capture in script to use all history
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/url_search.sh | 3 |
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 |