You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks so much for ripgrep, I use it all the time! 😍
Now, my little suggestion
Describe your feature request
Currently when searching in a terminals, matching lines are preceded by line numbers followed by ":" or "-" depending on whether they are actual matches or context lines. This is cool.
However, when the output includes successive lines with different number of digits, that can slightly decrease the readability of the output, specially for files where indentation is important. For example:
Something like this was requested in #544. It was added to ripgrep in #723. An issue with the idea was raised in #795 and I ultimately decided to remove the feature in ae6f871. The options at this point are:
Use the --json flag and write your own tool that prints results in whatever way you want.
Somehow find a way to come up with a thorough specification for this feature that works well in all output modes and doesn't require buffering all output.
Even if you manage to achieve the above, I might still say no to it if I perceive it as increasing the maintenance burden too much.
I'm going to close this for now as a duplicate as I think it's unlikely something like this will get added.
I will note that I suspect you could write a fairly simple wrapper script that will do what you need without too much fuss.
Thank you for your suggestions and context, and sorry I failed to find the previous request before opening this, I must've used the wrong search keys :)
First of all, thanks so much for ripgrep, I use it all the time! 😍
Now, my little suggestion
Describe your feature request
Currently when searching in a terminals, matching lines are preceded by line numbers followed by ":" or "-" depending on whether they are actual matches or context lines. This is cool.
However, when the output includes successive lines with different number of digits, that can slightly decrease the readability of the output, specially for files where indentation is important. For example:
The
delete
anddelete_confirmation
keys are siblings, but the indentation makes it not that clear.Would it be desirable to justify line numbers to the highest number of digits of each chunk of output?
Thanks!
The text was updated successfully, but these errors were encountered: