keeganstreet / element-finder

Find in Files with CSS selectors
http://keegan.st/2012/06/03/find-in-files-with-css-selectors/
118 stars 8 forks source link

--details option to output line, column, and html for each match #10

Open kerryj89 opened 2 years ago

kerryj89 commented 2 years ago

Thank you for making this tool. I see you've already collected line, column, and html snippet but saw no option to show that in the output. This option --details or --D allows that. This does not make changes to the original output, only adds to it when given the option.

Example output:

someone@somewhere path % elfinder -D -s "del"
Searching for "del" in 974 files in "/some/dev/path".
Found 3 matches in /some/dev/path/somewhere.html
        [58:72] <del>Bob</del>
        [60:73] <del>Jane</del>
        [62:78] <del>Jack</del>

Found 1 match in /some/dev/path/elsewhere.html
        [81:69] <del>Jill</del>

Found 4 matches in 2 files (0.015 seconds).