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 accomplished a few ways, but I would specifically propose using / as a reserved character for regex select operations. This would allow supporting replacement through the common /select/replace/g syntax wherever regex is used.
As far as I can tell workspace scope find replace is considerably more complex to implement than the others. The current grep -> fuzzy filter files user interface would likely be unergonomic compared to a live_grep UI for the regex replacement usecase.
Q: Why not use idiomatic helix multi cursor functionality s: to replace matches
A: I believe the most productive feature of regex substitution are capture groups which are not replicated with multi-cursor.
Support regex substitution, comparable to vim
:sor VSCode search & replace.I propose supporting regex replacements for selection
s, files/, and the workspace scopes<space> + /.This could be accomplished a few ways, but I would specifically propose using
/as a reserved character for regex select operations. This would allow supporting replacement through the common/select/replace/gsyntax wherever regex is used.As far as I can tell workspace scope find replace is considerably more complex to implement than the others. The current
grep -> fuzzy filter filesuser interface would likely be unergonomic compared to alive_grepUI for the regex replacement usecase.Q: Why not use idiomatic helix multi cursor functionality
s:to replace matchesA: I believe the most productive feature of regex substitution are capture groups which are not replicated with multi-cursor.