-
Notifications
You must be signed in to change notification settings - Fork 0
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
grep with hierarchical context #21
Comments
I really want a terminal pager (like
|
JSON/YAML-specific stuff
|
https://github.com/Canop/broot implements this paradigm excellently for file hierarchies. |
VSCode implemented "StickyScroll" option 🎉 |
Hi @cben, can we have an option to use the indentation as default instead of the language server outline info. |
I was not involved in any way with the VSCode implementation. I'm just happy it exists (and probably won't work on similar support anywhere else in the near future). |
In Emacs there are 2 obvious approaches to implementing something like this:
Anyway, I'm starting to use topsy, strictly better than nothing. It's not indentation-based though. (Focusing on current function is not bad signal-to-noise choice given 1 line constraint) |
Various unix tools treating input files as flat and could use some understanding of their actual hierarchical structure. There have been a few attempts, mostly specializing on xml.
But, for many purposes, there is much simpler yet almost universal indicator structure – indentation!
Specifically I'd most like it in
grep
orag
/rg
.There should be an option to include not just the matching line(s) but also the chain of "parent" lines with lesser indentation.
ag
/rg
?/file/names:linenum:text
format input, finds the input file and adds missing context?!grep
/ag
uses (as well as other tools like lint warnings...).pipeline | grep ... | tool-to-add-context
won't work.The text was updated successfully, but these errors were encountered: