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

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

Support regex substitution command · Issue #2232 · helix-editor/helix
Support regex substitution, comparable to vim :s or VSCode search & replace. I propose supporting regex replacements for selection s, files/, and the workspace scopes <space> + /. This could be acc...
GitHub · github.com

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

Connections

Related tags and posts connected to this entry.