add line and col to output for richer results #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

What does this PR do?
This adds useful line and col information to filepath output if needed for keywords given.
Passing
-lappends:line_number:keywordto the end of file pathsPassing
-cappends:line_number:col_number:keywordto the end of file pathsIf a single file has many results, each result will be added.
This will help tools/humans/LLMs when searching large files.
Keywords with line numbers
$ scnnr -d . -e .md,.go -k fileData,cache -l scnnr_bins/README.md:117:cache scnnr_bins/README.md:122:cache scnnr_bins/README.md:129:cache scnnr_bins/README.md:135:fileData scnnr_bins/README.md:135:cache README.md:123:cache README.md:128:cache README.md:135:cache README.md:141:fileData README.md:141:cache scnnr_bins/README.md:377:cache scnnr_bins/README.md:387:cache README.md:383:cache README.md:393:cache pkg/scanner.go:215:fileData pkg/scanner.go:222:fileDataKeywords with both line numbers and column numbers
$ scnnr -d . -e .md,.go -k fileData,cache -c scnnr_bins/README.md:117:53:cache scnnr_bins/README.md:122:29:cache scnnr_bins/README.md:129:22:cache scnnr_bins/README.md:135:28:fileData scnnr_bins/README.md:135:37:cache scnnr_bins/README.md:377:36:cache scnnr_bins/README.md:387:40:cache pkg/scanner.go:215:9:fileData pkg/scanner.go:222:26:fileData README.md:123:53:cache README.md:128:29:cache README.md:135:22:cache README.md:141:28:fileData README.md:141:37:cache README.md:383:36:cache README.md:393:40:cache