6 ms·
This looks neat, how do I try it out? Semgrep is nice for simple modifications but poor at multi line. Comby works well a lot of the time but I really need some
by gregwebs 4y ago
This looks neat, how do I try it out? Semgrep is nice for simple modifications but poor at multi line. Comby works well a lot of the time but I really need something more sophisticated. More sophisticated often means language specific but I would like to have a language independent tool like this.
- zephraph 4y agoast-grep is another tool along these lines that's worth checking out. Closer to semgrep than comby, but it's improving fairly rapidly.
- gushogg-blake 4y agoThanks, looks interesting.
- gushogg-blake 4y agoThe latest version is in my editor project at https://gitlab.com/gushogg-blake/edita-release https://gitlab.com/gushogg-blake/edita-release. It will apply changes but it's just the minimal functionality at the moment, there is no feedback after you press the Replace all button. My process is to use the editor and write whatever I most need on it right now so not sure when I'll get round to fleshing it out. Ideally other editors will take inspiration from it and add their own implementations. The code is available for reference here and I'd be happy to go over it in detail with anyone who wants to: https://gitlab.com/gushogg-blake/edita-release/-/tree/main/src/modules/codex https://gitlab.com/gushogg-blake/edita-release/-/tree/main/s....