💭 Support regex substitution command · Issue #2232 · helix-edito...

!https://github.com/helix-editor/helix/issues/2232#issuecomment-1228632218

Copy this post

Here is a really good vim substitute with regex capture groups, saving this one for a rainy day.

* Reading 1: This is a title to a link
* Reading 2: This is another title

:%s/\v(: )(.+)$/\1\[\2\]\(

* Reading 1: [This is a title to a link](
* Reading 2: [This is another title](

Note

This post is a thought. It’s a short note that I make about someone else’s content online #thoughts