I would think the following snippet in my tmux.conf would work:
bind-key C-u run-shell "tmux capture-pane -Jp | urlscan -d"
But all I get with <prefix> C-u is:
'tmux capture-pane -Jp | urlscan -d' returned 1
I would think the following snippet in my tmux.conf would work:
bind-key C-u run-shell "tmux capture-pane -Jp | urlscan -d"
But all I get with <prefix> C-u is:
'tmux capture-pane -Jp | urlscan -d' returned 1
According to tmux manual:
Since
urlscanrequires a tty to work properly it does not work when it is run in the background.I guess this is what you want: