-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supress printing of line numbers #311
Comments
Can you give a specific command line that you're having problems with? Does the |
|
If I'm understanding, instead of
you want:
Why is that? What's the use case? Not arguing, just trying to understand. |
Exactly. I think it was where the length of the line number string varied from 1 to 4 characters, thereby skewing the text content on lines accordingly, making it difficult to relate them to each other. Suppressing line numbers would seem like a one-liner, though I fully support developer inertia to prevent feature bloat. An alternative would be to right-align the line numbers, eg. |
Knowing how many digits to allow Not an impossible heuristic: |
it may be all the way back in ack1.$large that I last spoke in favor of I support full control of line numbering separable from filenames |
I will note a weird workaround that does work - putting the
Not intuitive but it works! (This workaround could be included pro tempore in Cookbook beyondgrep/website#103 ) |
Sometimes I find line numbers to be distracting, especially when reading the search result with context option (e.g -C 4). Not having line numbers (along with ":" & "-" prefixes to lines) would help much. |
ack v3.4.0 always prints line numbers:
Is there an option to not print line numbers, eg.
Curiously, the help and man pages say nothing of this fundamental functionality.
#142 might relate to this, but nothing happening there for a couple of years.
Does this mean we are stuck with line numbers?
The text was updated successfully, but these errors were encountered: