Skip to content
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

Show more context, like the -C option to grep #51

Open
JeffreyBenjaminBrown opened this issue Nov 13, 2018 · 1 comment
Open

Show more context, like the -C option to grep #51

JeffreyBenjaminBrown opened this issue Nov 13, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@JeffreyBenjaminBrown
Copy link

grep todo normally shows you only those lines where it discovered the word "todo", but grep todo -C n will show you the n preceding lines and the n subsequent lines as well. (If you want more granularity you can use -A n_preceding -B n_subsequent.) Controls on the web page to do this would let a user get a better view of an issue they don't remember clearly without having to open any file.

@aviaviavi
Copy link
Owner

Neat idea, would certainly be easier than clicking through to the resulting source code page.

I think this change would end up being moderately tricky, from complexity around tracking the surrounding lines as other TODO's get deleted and such, but it's definitely doable!

@aviaviavi aviaviavi added the enhancement New feature or request label Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants