On Wed, Dec 01, 2010 at 07:20 AM, Martin Bahr said: > On Wed, Dec 01, 2010 at 01:52:17PM +0800, Grissiom wrote: > > I have a suggestion regard with BROWSER. I think we should > > check BROWSER at first. > > that leads to problems for users like me who may have the > standard gui browser in $BROWSER but do not want to use a > gui-browser for fish help.
I am effectively giving $BROWSER top priority in gui-mode so we don't need to make any changes to cause a problem for you. If the $BROWSER program exists, it will always be used in gui-mode. The only solution I have for you ATM is for you to always use the -t (--text) flag which will make help.fish pretend it is in text mode even if it is in graphics mode. Then if you don't like the default text browser, you can set your text-mode browser with the $CONSOLE_BROWSER variable. This is not ideal because you will have to always use the -t flag. I'd be glad to add recognition of a $GRAPHICAL_BROWSER variable (or $FISH_HELP_BROWSER or something) that takes precedence over $BROWSER. The only problem with doing it this way is that if the text browser you want to use is not on my list of known text browsers: www-browser links2 elinks lynx w3m links then it will get launched in the background which makes it look like help.fish is broken. The other solution (that I can think of) is to use another variable (or flag or both) that makes text mode sticky just like what I did for quiet mode. Philip pointed out that with such complications I'm drifting away from the original design ideas of fish: http://fishshell.org/user_doc/design.html I'm open to suggestions. Peace, James ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users