You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@alan910127 This is available with astgrep (variable captures) and I would love to expose it for ripgrep, but it relies on rg --json output containing the capture group text, which is currently not available.
Also, mind you I've tried before to add a PR to ripgrep for a different issue (diff support, which we hack around for in this plugin) and it's been sitting there unreviewed since September 😢. BurntSushi/ripgrep#2883
Not blaming the owner since this is after all free work that he provides to the community, but not sure how much luck you would have adding the capture group text in the output...
@MagicDuck Thanks for your clarification! I'm sorry to hear about the PR situation. It seems like BurntSushi (the author) has shifted focus to other projects. I hope your PR gets reviewed soon!
Closing this issue for now but like I said I am always open to adding the functionality if the capture groups become available on the ripgrep output at some point.
Is it possible to deal with capturing groups with the lua replacement interpreter using ripgrep? I would like to do the following:
Search:
Replace:
The text was updated successfully, but these errors were encountered: