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\]\(
All posts with the tag "refactoring"
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\]\(
Interesting take on refactoring the whole codebase from your editor. In this thread the-mikedavis suggests multicursor as a replacement for substitute, and later in the thread takes the side that larger workspace wide edits are outside the scope of helix and he would reach for a refactoring tool like fastmod to do the job.