diff options
author | Wenxuan <wenxuangm@gmail.com> | 2021-05-30 17:07:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-30 17:07:44 +0800 |
commit | 6f0a08ad6e5eeed55cefea60ae1015e1bd796720 (patch) | |
tree | d6d22d5cf4a7b0143b6bebfb7b0a420600680449 /fzf-url.sh | |
parent | 5b202610ae9dd788a4c07e18c07a2634854401cd (diff) | |
parent | adb23c1e860d1ac9a528d6abe67c3081f6d6177b (diff) | |
download | fork-tmux-fzf-url-6f0a08ad6e5eeed55cefea60ae1015e1bd796720.tar.gz fork-tmux-fzf-url-6f0a08ad6e5eeed55cefea60ae1015e1bd796720.tar.bz2 fork-tmux-fzf-url-6f0a08ad6e5eeed55cefea60ae1015e1bd796720.zip |
Merge pull request #14 from maniac-en/master
Using entire buffer scrollback as target content
Diffstat (limited to 'fzf-url.sh')
-rwxr-xr-x | fzf-url.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ open_url() { fi } -content="$(tmux capture-pane -J -p)" +content="$(tmux capture-pane -J -p -S -"$2")" mapfile -t urls < <(echo "$content" |grep -oE '(https?|ftp|file):/?//[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]') mapfile -t wwws < <(echo "$content" |grep -oE 'www\.[a-zA-Z](-?[a-zA-Z0-9])+\.[a-zA-Z]{2,}(/\S+)*' |sed 's/^\(.*\)$/http:\/\/\1/') |