toolong
toolong copied to clipboard
[Enh request] Filter
Please add a filter that lets you enter a string and only lines with (or without) that string are shown.
@willmcgugan off the top of your head, do you know if this would be a fairly simple addition?
e.g Would be sufficient to add an else-block at this code pointer & not call text.render
at this code pointer: https://github.com/Textualize/toolong/blob/e564702784cfa85071e73947ebf9aaaf2d535d7a/src/toolong/log_lines.py#L634-L636
I might be interested in taking a crack at adding this if it's a small-ish change
it would be extremaly useful indeed!