Nic0 / tyrs

Twitter and Identica client using curses
http://tyrs.nicosphere.net
61 stars 10 forks source link

openurl configuration #23

Closed dotfolios closed 13 years ago

dotfolios commented 13 years ago

Hi. At first thanks again for the openurl option. But , there is always a but: I think the browser choice should be configured in the $HOME/.config/tyrs/$CONFIGFILE, or use the global $BROWSER variable.

Why ? : -The user have the choice. -I want to use tyrs with elinks/lynx/w3m/links/etc... when i'm using it in dvtm/tmux/screen , by example. -I 'm using another browser than firefox : jumanji/luakit/chromium/etc...

Well just a new idea. Tell me what you think.

Nic0 commented 13 years ago

Hi,

You already have choice for the browser in the config file: http://tyrs.nicosphere.net/reference.html (part 4.6.1)

[params] openurl_command = firefox %s

the idea to check for $BROWSER is a good one, i'll do something with it. could be something like: default firefox, overide if the $BROWSER is define, and overide if the config file is define. I haven't try yet the openurl with console text browser, hope this will work.

Thanks for feedback.

dotfolios commented 13 years ago

Ok it works by setting the value in the config file. I tested lynx and w3m and it works too. Thanks.