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 Support (for paging through colored results) #67

Closed
gwittel opened this Issue Sep 19, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@gwittel

gwittel commented Sep 19, 2012

One nice feature of 'ack' is that you can set a pager so you can page through the colored result set. It would be cool if there was a simple pager option (defaulting to less -R or -r) to display results via a pager.

@ggreer

This comment has been minimized.

Show comment
Hide comment
@ggreer

ggreer Sep 20, 2012

Owner

This would be a nice feature to have. I'll probably get around to it eventually, but feel free to submit a pull request if you want it done faster.

Owner

ggreer commented Sep 20, 2012

This would be a nice feature to have. I'll probably get around to it eventually, but feel free to submit a pull request if you want it done faster.

@ggreer

This comment has been minimized.

Show comment
Hide comment
@ggreer

ggreer Oct 7, 2012

Owner

Try it out with master. ag --pager "less -R" blah should work.

Owner

ggreer commented Oct 7, 2012

Try it out with master. ag --pager "less -R" blah should work.

@ggreer ggreer closed this Oct 7, 2012

@gwittel

This comment has been minimized.

Show comment
Hide comment
@gwittel

gwittel Oct 8, 2012

Works great. You may want to add it to the usage statement.

gwittel commented Oct 8, 2012

Works great. You may want to add it to the usage statement.

@chadwhitacre

This comment has been minimized.

Show comment
Hide comment
@chadwhitacre

chadwhitacre Jan 11, 2018

Note that ag doesn't use an ~/.agrc file by design (#61), so to configure this globally you should use a shell alias like so:

alias ag="ag --pager='less -R'"

chadwhitacre commented Jan 11, 2018

Note that ag doesn't use an ~/.agrc file by design (#61), so to configure this globally you should use a shell alias like so:

alias ag="ag --pager='less -R'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment