-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFE: Allow spacebar to advance pager #19
Comments
It would be great if you can add also vi style navigation and search... |
Adding # simple wrapper, assuming Bash shell…
richp() { command rich --force-terminal "$@" | less -RX; }
# less -RX → process terminal escapes (e.g., colors), don't clear screen on quit
# handle redirection/piped input as well
richp() {
local stdin=-
[[ -t 0 ]] && stdin=
command rich --force-terminal $stdin "$@" | less -RX
} Examples: README=https://raw.githubusercontent.com/Textualize/rich-cli/main/README.md
curl $README | richp -m
richp $README
# other options pass through just fine
richp $README -d 0,$(((COLUMNS-80)/2)) |
It would be great to have emacs-style navigation as well. Perhaps there can be a configuration file (say ".richrc") that stores the user's configuration. |
Every time I use
--pager
my fingers bang helplessly on the spacebar until I remember that I have to use pageup/pagedown, etc. Any chance you could allow the spacebar to advance the pager as well so that the behavior matches other common pagers?The text was updated successfully, but these errors were encountered: