Add option to include children node (and corrections on readme.md)
changhenry2 opened this issue · comments
I found this program because of ogrep by Matt Brubeck
and I found it giving more useful options than the "original" ogrep (eg. highlighting, listing line number).
-
Suggestion
Is is possible to add an option (-c for children?) to list "children node" when printing out the results?
Reason: I want use ogrep for searching information in plain text notes, children nodes offer more detailed information relating to the keywords (I personally believe that is how people take notes).
I tried to revise the source code myself (changing the true/false inobsolete_context
) but could not succeed.
Could you consider adding this option, thanks! -
Correction
In readme.md, "otools" appears several times. I guess that was the original name of ogrep?
for example,
otool in intended to search in single file only.
I believe it should be
ogrep is intended to search in single file only.
I just added --children
option to [ogrep-rs](Rust version of ogrep), you may have a look at it, it is faster and more featureful. I will eventually add this option to this ogrep
too.
Thanks for your help!
I've submitted another issue related to search to ogrep-rs
repository.