michael-lazar / rtv

Browse Reddit from your terminal
MIT License
4.65k stars 276 forks source link

Feed back $RTV_URLVIEWER into RTV's mailcap handling system #455

Open SevereOverfl0w opened 7 years ago

SevereOverfl0w commented 7 years ago

This would allow extraction of URLs & Images into my preferred local trick, e.g. youtube links will be opened in mpv, images in feh etc.

I think this can be done by calling urlscan -n to get the url to STDOUT.


Alternatively, rtv could have the advanced mime type support from urls put into a separate tool which be set as the browser for these tools.

ghost commented 7 years ago

I just installed rtv and I am looking for this feature. Youtube links from reddit posts are opened in mpv thanks to mailcap but Youtube links in comments are not.