krasa / GrepConsole

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7125
Apache License 2.0
436 stars 57 forks source link

[Feature Request] ability to enable surround lines after and before the "main" line #170

Closed csbako-gl closed 2 years ago

csbako-gl commented 4 years ago

Sometime I would like to see some lines before and/or after the line which greped.

It would be good if there were an option to select line count before and an other option to selecect line count after the greped line to show. The surrounder lines could be gray or something like that.

An alternate solution to add the surrounder lines to tooltip on greped lines.

krasa commented 4 years ago

Probably doable, I would have to save every line to e.g. circular array, then print them together with the grepped one, and print every following one.

The tooltip would be probably impossible.

csbako-gl commented 4 years ago

The first solution is the best for me. The tooltip is not necessary. Thanks a lot.

krasa commented 2 years ago

You can try it: GrepConsole.zip

krasa commented 2 years ago

GrepConsole.zip