echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.74k stars 179 forks source link

On replacing tag, allow presenve props #808

Closed JonatasAmaral closed 4 months ago

JonatasAmaral commented 4 months ago

Contributing guidelines

Module(s)

mini.surround

Description

It would be nice, when doing a surround replace tag, by another tag, some special char could be used on the input, to put the original tag's props back in.

Ex: given <div class="menu" ...>

press srtt

input: nav %

gets <nav class="menu" ...>

echasnovski commented 4 months ago

Thanks for the suggestion!

This was already discussed in #397 with resolution that it doesn't quite fits the 'mini.surround' design.

Closing as duplicate of #397.