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
Is your feature request related to a problem? Please describe.
I like my pager to not clear the screen when it exits. This allows me to use my terminals' scrollback buffer to revisit what was just displayed [in the pager].
Thus, the environment variable $PAGER is set to /usr/bin/less --no-init.
This does not work with glow.
glow does work just fine without using the paging functionality, e.g. git file.md.
But using git -p file.md to activate paging will result in:
I wish glow and less would work together to achieve the best of both worlds: render markup files as beautifully as glow does, as well as page the contents and leave them for me to read, if I quit glow.
Basically, either offer the option to define the pager in the glow config, or integrate some pager-like behavior straight into glow, since it has to ignore the pagers' config anyways.
Additional context
I am fully aware that this is a usability issue, one that maybe only two people on this planet share.
I acknowledge that this is neither a technical problem, nor a problem of 'glow', or of 'less'.
The issue is caused by me, using the '--no-init' parameter with less.
Since I am struggling to find a solution to my problem, I'm raising this as a feature request, not a problem issue, in the hope, that someone has an idea on how to tackle this.
If you find this request inappropriate (or some other negative feeling), feel free to close it.
Thank you for your attention.
Have a nice day.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I like my pager to not clear the screen when it exits. This allows me to use my terminals' scrollback buffer to revisit what was just displayed [in the pager].
Thus, the environment variable
$PAGER
is set to/usr/bin/less --no-init
.This does not work with glow.
glow does work just fine without using the paging functionality, e.g.
git file.md
.But using
git -p file.md
to activate paging will result in:ESC[38;5;228;48;5;63;1mESC[0mESC[38;5;228;48;5;63;1mESC[0m ESC[38;5;228;48;5;63;1m ESC[0mESC[38;5;228;48;5;63;1mMarkdown DocumentESC[0mESC[38;5;228;48;5;63;1m StructureESC[0mESC[38;5;228;48;5;63;1m ESC[0mESC[38;5;252mESC[38;5;252m ESC[0mESC[38;5;252m
Describe the solution you'd like
I wish glow and less would work together to achieve the best of both worlds: render markup files as beautifully as glow does, as well as page the contents and leave them for me to read, if I quit glow.
Basically, either offer the option to define the pager in the
glow config
, or integrate some pager-like behavior straight into glow, since it has to ignore the pagers' config anyways.Additional context
less
.Since I am struggling to find a solution to my problem, I'm raising this as a feature request, not a problem issue, in the hope, that someone has an idea on how to tackle this.
If you find this request inappropriate (or some other negative feeling), feel free to close it.
Thank you for your attention.
Have a nice day.
The text was updated successfully, but these errors were encountered: