Closed anatoly-scherbakov closed 2 weeks ago
Thanks for the suggestion. It may be a good idea to add a simple filter for labels.
For now you can get the same functionality with jq
as a workaround.
todos -o json | jq -r '. | select(.label = "add-search-engine") | .path + ":" + (.comment_line|tostring) + ":" + .text'
Is your feature request related to a problem? Please describe. I would like to use TODO comments as documentation. For instance,
Describe the solution you'd like I'd like to be able to easily retrieve all the TODOs by label.
Describe alternatives you've considered Could be done with JSON output and
jq
but it is a bit harder/more involved than just writing