Herrington Darkholme (@hd_nvim) 's Twitter Profile
Herrington Darkholme

@hd_nvim

🌐 Frontend Vimmer
βš’οΈOpen Source with @typescript @vuejs and @rustlang
πŸ’» @KuaishouVideos
πŸš€ ast-grep.github.io is my hobby project

ID: 330765347

linkhttps://github.com/HerringtonDarkholme calendar_today07-07-2011 03:39:59

13,13K Tweet

6,6K Followers

2,2K Following

Herrington Darkholme (@hd_nvim) 's Twitter Profile Photo

#ast_grep_trick If you are using a shell, you can write a rule with PLACEHOLDER and fill in values by process substitution. 𝐚𝐬𝐭-𝐠𝐫𝐞𝐩 𝐬𝐜𝐚𝐧 -𝐫 <(𝐬𝐞𝐝 '𝐬/𝐩π₯𝐚𝐜𝐞𝐑𝐨π₯𝐝𝐞𝐫/𝐯𝐚𝐫/𝐠' 𝐭𝐞𝐦𝐩π₯𝐚𝐭𝐞.𝐲𝐦π₯) It can make ast-grep rule dynamic and parameterized!

#ast_grep_trick If you are using a shell, you can write a rule with PLACEHOLDER and fill in values by process substitution.

𝐚𝐬𝐭-𝐠𝐫𝐞𝐩 𝐬𝐜𝐚𝐧 -𝐫 &lt;(𝐬𝐞𝐝 '𝐬/𝐩π₯𝐚𝐜𝐞𝐑𝐨π₯𝐝𝐞𝐫/𝐯𝐚𝐫/𝐠' 𝐭𝐞𝐦𝐩π₯𝐚𝐭𝐞.𝐲𝐦π₯)

It can make ast-grep rule dynamic and parameterized!