Textualize / frogmouth

A Markdown browser for your terminal
https://www.textualize.io/
MIT License
2.35k stars 42 forks source link

Ability to configure browser to open links #79

Closed snth closed 10 months ago

snth commented 10 months ago

Hi,

I was just playing around with this and it seems to try to use lynx or w3m as the browser to open links.

I would like to configure this to use my system browser, usually this is something like open <LINK> in the terminal.

Thanks

davep commented 10 months ago

Frogmouth, when opening an "external" link, uses Python's own webbrowser controller; it should be opening whatever makes sense to it based on your operating system and environment. For example, on macOS, if I open a web link in a Markdown document it opens in my system's graphical browser.

snth commented 10 months ago

Ah thanks.

I just tested python -m webbrowser -t "https://www.python.org" in different environments and it did open my system browser in WSL but lynx in a tmux session.