Skip to content
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

Pager that supports colors by default #13

Open
razzius opened this issue Nov 15, 2021 · 1 comment
Open

Pager that supports colors by default #13

razzius opened this issue Nov 15, 2021 · 1 comment

Comments

@razzius
Copy link
Owner

razzius commented Nov 15, 2021

Other features:

  • smart case search
  • man page links (not sure about this one)
  • color or no color
  • quit if one screen
@razzius
Copy link
Owner Author

razzius commented Feb 1, 2024

There are some good features here, some of which are captured by

function pager
    less --no-init --quit-if-one-screen --RAW-CONTROL-CHARS
end

As for less supporting colors, most commands drop the colors when piped, so they have to be told to force it using config like https://unix.stackexchange.com/questions/620621/how-can-i-keep-the-color-output-of-git-status-when-piping-it-through-grep or hax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant