Closed s-ff closed 4 months ago
It's an interesting idea. Why did you reconsider and close this?
Hi @mr-tz ,
I realized https://github.com/mandiant/capa/issues/1686#issuecomment-1667626860 had already discussed the issue. So I didn't want to create a duplicate. Do you recommend reopening the issue :) ?
Ah, yeah, that's good then. Thanks!
Summary
Implement a pager feature to handle extensive text outputs, allowing users to navigate capa's results and search efficiently.
Motivation
Capa's output can sometimes be overwhelming, making it challenging to navigate and search (
/
) for specific rule matches. Adding a pager, likeless -R
, would provide an improved user experience. This setting should be optional, with the user being free to setup a pager tool; for example via--pager <tool>
(or$PAGER
).Describe alternatives you've considered
click.echo_via_pager()
pydoc.pager()
subprocess.Popen()
]()Additional context
The pager should work on Linux, MacOS and Windows