mandiant / capa

The FLARE team's open-source tool to identify capabilities in executable files.
Apache License 2.0
4.01k stars 505 forks source link

add pager to page capa's long text output #2021

Closed s-ff closed 4 months ago

s-ff commented 4 months ago

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, like less -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

Additional context

The pager should work on Linux, MacOS and Windows

mr-tz commented 4 months ago

It's an interesting idea. Why did you reconsider and close this?

s-ff commented 4 months ago

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 :) ?

mr-tz commented 4 months ago

Ah, yeah, that's good then. Thanks!