Show LINES before/after line with found text

Tool for Search and Replace across multiple files.
Post Reply
User avatar
Stefan

Show LINES before/after line with found text

Post by Stefan »

I know

Options > Preview
> [ � ] Max. chars before/after found text


But i like an feature like:
Options > Preview
> [ � ] Max. LINES before/after line with found text


Probably as XOR?
Use "Max chars" OR "Max lines"


That way i didn't have to try&error how many chars
i had to set at this options to see one line before&after
the line with found text.


What do you think ? ;-)
User avatar
Fool4UAnyway

Post by Fool4UAnyway »

Further alternatives:

- Use the minimum of Max. Chars and Max Lines, so no more than Max Lines are shown if they contain less than Max. Chars
- Use the maximum of Max. Chars and Max Lines, so at least both criteria are met

Yet another (separate) option:

- Show only complete lines, making sure all lines that meet any of the criteria above are shown by their full contents
User avatar
Fool4UAnyway

Post by Fool4UAnyway »

... if they contain less than Max. Chars

->- if toegether they contain less than Max. Chars
Post Reply