emartineau / SelectionWrapper

Wraps text depending on the key pressed, like in Visual Studio Code
MIT License
35 stars 9 forks source link

[Feature Request] Support multiple selection #13

Open Trokkin opened 2 years ago

Trokkin commented 2 years ago

Apparently the extension doesn't work when using multiple selection. Instead of wrapping in parenthesis, it just prints the opening character, removing all the selected text in the process. This could be a bug, also.

emartineau commented 2 years ago

HI, this isn't a bug, but rather something I purposefully left out of the current build since implementing it improperly can lead to unexpected behavior. Have tried several times in the past but too many edge cases iirc, so I just took it out for now. Might revisit at some point (or someone else could give it a try!).

https://github.com/emartineau/SelectionWrapper/blob/55c1935a3e04942bb4d42d503dd3f92594d01cbd/SelectionWrapperCommon/Wrapper.cs#L47