Skip to content

[Feature Request] support -l to list all files like ripgrep #2371

@HerringtonDarkholme

Description

@HerringtonDarkholme

Please upvote if you want this feature

Discussed in #2369

Originally posted by loeffel-io December 3, 2025
can ast-grep do smth like ast-grep -p 'bazel_dep(name="earth_resourcemanager_service_proto", version="$VERSION", $$$)' --globs '**/MODULE.bazel' -l <-- -l to list all files?

this is to complex imo

ast-grep -p 'bazel_dep(name="earth_resourcemanager_service_proto", version="0.7.0", $$$)' --globs '**/MODULE.bazel' --json . | jq -r '.[].file' 

this feature is under consideration and welcomes feedback. If you want this please comment or upvote this.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions