AckslD / muren.nvim

Multiple replacements in neovim
363 stars 5 forks source link

FEAT: Turn an already entered `:s/.../.../` command into a muren window #26

Open IndianBoy42 opened 1 year ago

IndianBoy42 commented 1 year ago

Similar to MurenUnique but in addition to the left hand side being populated from unique matches, the right hand side could be populated from what those lhs's would be transformed into. A user might realize they need a more advanced search-and-replace while writing the substitute command and want to invoke Muren. This saves some retyping.

This would probably have to use a 'c' plug mapping rather than a command.

If the substitution range could be used by muren as well that could be nice, although that's technically a separate feature request.

AckslD commented 1 year ago

That's a great suggestion! I'm a bit swamped atm so if you want to try to implement it yourself feel free to go ahead :)