-
Notifications
You must be signed in to change notification settings - Fork 330
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
Ungron to ignore lines saying -- #15
Comments
Sounds like a good call to me! It's workaround-able with a I'll have a look at implementing it this evening, unless someone beats me to it of course :) Thanks for the suggestion! |
@marcusatbang sorry it took so long! Version 0.3.2 should now not have this problem :) |
That was remarkably fast. Well done. |
Confirmed as working. |
Fantastic! Glad to hear it :) |
Grep can search for lines immediately preceding or following the matched line, using
grep -A
,grep -B
orgrep -C
. However the output of these includes separator lines that read--
. This output currently produces an error when you try to ungron the result.Since grep is a primary use for gron, I believe it would be a useful enhancement for it to accept a common output of grep. It doesn't need to do anything with the lines, only match and exclude them.
For example:
The text was updated successfully, but these errors were encountered: