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 + /. This could be acc...
GitHub · github.com [1]
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 [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://github.com/helix-editor/helix/issues/2232#issuecomment-1228632218
[2]: /thoughts/
Posts tagged: refactoring
All posts with the tag "refactoring"
2 posts
latest post 2024-10-08
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 + /. This could be acc...
GitHub · github.com [1]
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 [2] to do the job.
Note
This post is a thought [3]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://github.com/helix-editor/helix/issues/2232#issuecomment-1107644740
[2]: https://github.com/facebookincubator/fastmod?tab=readme-ov-file
[3]: /thoughts/