bacon icon indicating copy to clipboard operation
bacon copied to clipboard

[Feature] String search

Open crumblingstatue opened this issue 1 year ago • 1 comments

Sometimes I have a huge output, and I would like to be able to quickly find a lint/error/etc. of interest.

Example use case

  • I enable clippy::pedantic
  • There is tons of warnings, so I toggle summary view to find interesting lints
  • I see an interesting lint that I would like to enable, but the summary view doesn't show the lint name
  • I untoggle summary view, but that resets the scroll, so I'm not at the same lint anymore
  • I need a way to find that lint again in the sea of output (by searching for part of the lint message), but there is no search feature

I reflexively reach for /, since it's a standard binding in a pager for string search, so that would be a nice default binding for it.

crumblingstatue avatar Oct 04 '24 13:10 crumblingstatue

I reflexively reach for /, since it's a standard binding in a pager for string search, so that would be a nice default binding for it.

You can be confident I couldn't choose any other one ;)

Canop avatar Oct 04 '24 13:10 Canop

is there any hope for a feature like this? I would 100% use it often :D

Jirubizu avatar Dec 02 '24 13:12 Jirubizu

Yes, there's "hope". There's just not enough free time in my days at the moment.

But upvoting this issue is helpful: it makes the issue goes up in the todo list as it make me realize that several people want it.

Canop avatar Dec 02 '24 13:12 Canop

@crumblingstatue @Jirubizu Can you please check the PR #278 ?

Canop avatar Dec 20 '24 18:12 Canop

done

Canop avatar Dec 24 '24 19:12 Canop