Open tranzystorekk opened 3 months ago
Would using an alias work? In bash, you can run alias tldr="PAGER='less -R +g' tldr"
in your .bashrc
file, which is where I suppose you would want to set the value of TEALDEER_PAGER
, if we would support that. Then, all following usages of tldr
will have the PAGER
variable set.
Alias is a viable workaround, but a proper TEALDEER_PAGER
seems like a more user-forward way; similarly man
has MANPAGER
and bat
has BAT_PAGER
.
Fair enough. We are generally moving more towards config.toml
over environment variables, so maybe an option there (next to use_pager
) would be better
When setting
use_pager=true
, theless -R
default displays short tldr pages scrolled to the bottom:This can be fixed with
PAGER="less -R +g"
:I'm not sure if modifying the default command is worth it, but setting the global
PAGER
also seems like an overkill, maybe aTEALDEER_PAGER
variable would be a good middle ground?