We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ed7ce commit fb82d88Copy full SHA for fb82d88
fzf-url.sh
@@ -32,9 +32,9 @@ limit='screen'
32
[[ $# -ge 2 ]] && limit=$2
33
34
if [[ $limit == 'screen' ]]; then
35
- content="$(tmux capture-pane -J -p -e)"
+ content="$(tmux capture-pane -J -p -e |sed -r 's/\x1B\[[0-9;]*[mK]//g'))"
36
else
37
- content="$(tmux capture-pane -J -p -e -S -"$limit")"
+ content="$(tmux capture-pane -J -p -e -S -"$limit" |sed -r 's/\x1B\[[0-9;]*[mK]//g'))"
38
fi
39
40
urls=$(echo "$content" |grep -oE '(https?|ftp|file):/?//[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]')
0 commit comments