bhughes339 / vscode-replacerules

Search/replace rule support for Visual Studio Code
GNU General Public License v3.0
41 stars 13 forks source link

Allow user input variables #56

Open bromelio opened 1 year ago

bromelio commented 1 year ago

Great extension, thanks for making!

But would it be possible to optionally prompt the user for an input variable for a regex rule? For example I regularly have to change the text line width basically with a regex like find (.{50}) --> replace with $1/n. However, sometimes I don't want line width 50, but 20 or 100, you get the idea. So there should be an option to promt the user for an input variable to insert into the regex if I may ask.

What do you think, can you implement that, please? And if yes, do I need to manually update your extension or does it do so by itself?