its one of my favourite tools
i have it bound into vim so i can sg through a repo for patterns, and i use it on the command line all the time to change code instead of typing it
big thanks to @hd-nvim.bsky.social for making it a thing!
Thank you for your kind words and your amazing example!
Can I add your rule to the example catalog? It is amazing and should be helpful to many people🥰 https://ast-grep.github.io/catalog/typescript/
Comments
https://github.com/ast-grep/ast-grep
At first glance, it looks a lot like IntelliJ IDEA's "structural search and replace": https://www.jetbrains.com/help/idea/structural-search-and-replace.html
i have it bound into vim so i can sg through a repo for patterns, and i use it on the command line all the time to change code instead of typing it
big thanks to @hd-nvim.bsky.social for making it a thing!
Can I add your rule to the example catalog? It is amazing and should be helpful to many people🥰 https://ast-grep.github.io/catalog/typescript/