我有模式:
"test" https://an_url_here
我尝试使用fzf并绑定 ^m
打开 w3m
同 https://an_url_here
,下面的grep命令和xargs在命令行上与上面的输出完美配合但是当与fzf混合时它不起作用并且没有错误输出,请检查 w3m
这是空的网址:
"test" https://an_url_here | fzf --height=20% --ansi --no-sort --reverse --tiebreak=index --bind "ctrl-m:execute: (grep -o 'http.*$' | xargs w3m)"
如果我测试它,它的工作原理是
"test" https://an_url_here | grep -o 'http.*$' | xargs w3m