You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E.g. complete -h prints a bunch of useful information but I almost always need to scroll up a or use a pager (\ep or \eh in this case). I think it should use a pager by default if the output is a tty and there are more lines than one screenful, just like git diff and others.
Probably also for functions.
The text was updated successfully, but these errors were encountered:
This is a good idea, and it doesn't need to be implemented in the builtins: __fish_print_help is the fish function invoked for this and it's easy to improve.
krobelus
added a commit
to krobelus/fish-shell
that referenced
this issue
Oct 20, 2019
Every builtin or function shipped with fish supports flag -h or --help to
print a slightly condensed version of its manpage.
Some of those help messages are longer than a typical screen;
this commit pipes the help to a pager to make it easier to read.
As in other places in fish we assume that either $PAGER or "less" is a
valid pager and use that.
In three places (error messages for bg, break and continue) the help is
printed to stderr instead of stdout. To make sure the error message is
visible in the pager, we pass it to builtin_print_help, every call of which
needs to be updated.
Fixesfish-shell#6227
E.g.
complete -h
prints a bunch of useful information but I almost always need to scroll up a or use a pager (\ep
or\eh
in this case). I think it should use a pager by default if the output is a tty and there are more lines than one screenful, just likegit diff
and others.Probably also for functions.
The text was updated successfully, but these errors were encountered: