konradsz / igrep

Interactive Grep
MIT License
657 stars 17 forks source link

[feature request] Move highlight line inside the context viewer #40

Closed wilbeibi closed 10 months ago

wilbeibi commented 1 year ago

Something similar to tig.

konradsz commented 1 year ago

Hey, sorry for the late response. Could you explain that in a more detailed way? Would like to move around the file in which igrep found a match in the context viewer?

liming01 commented 1 year ago

I think he wants to scroll up/down the context viewer.

The scroll focus can be in the main viewer or in the context viewer, there are 2 ways:

konradsz commented 1 year ago

If that is the case I would be opposed to adding such a feature. I want igrep to be a lightweight "proxy" between (rip-)grep and user's editor. Current context viewer should be enough to determine whether you want to dig deeper into the file or just move further with your search results :)