spookylukey / pyastgrep

Grep Python Abstract Syntax Trees (AST) using XPath

Home Page:https://pyastgrep.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `--heading`

spookylukey opened this issue · comments

Similar to rg --heading, but we should print the filename+line number after a # character so that it looks like a Python comment. This would make it work well with --context=statement