4 ms·
Author here: I'm super familiar with this kind of find and replace syntax inside vim or with sed. Usually it works great! But in this specific situation it was
by Jackevansevo 2y ago
Author here: I'm super familiar with this kind of find and replace syntax inside vim or with sed. Usually it works great!
But in this specific situation it was tricky to handle situations with things spanning over multiple lines + preventing accidental renames.
- seanhunter 2y agoI realise that and like the article. I was trying to convey in my response that devs should have these things in their toolkit not that you "did the wrong thing"[1] somehow by using treesitter for this. [1] like that's even possible in this situation
- tmoertel 2y agoFor those tricky situations, there's "sledgehammer and review" and the second-order git-diff trick: https://blog.moertel.com/posts/2013-02-18-git-second-order-diff.html https://blog.moertel.com/posts/2013-02-18-git-second-order-d...