stephen-riley / regexworkbench

A Visual Studio Code extension that allows one to easily play with regular expressions
15 stars 8 forks source link

Feature Request: Allow Saving REGEX search replace string pairs for later reuse #10

Open JordyScript opened 4 years ago

JordyScript commented 4 years ago

Firstly: Awesome extension!

Secondly: what would make this extension even more powerful and useful, is if it could optionally remember past regular expression strings.

The way I envision this, the UI would need a "Save Regex" button, which would then save both the contents of the search regex field and the contents of the replace regex field with a name that the user provides. Also the UI would need a "Load Regex" Button which shows a list of all the saved regex names.

I don't think general regex history that remembers every regex pair ever used would be that useful, as that would just clutter up the history, but remembering select regexes would greatly enhance ease of use for repetitive tasks.

What are your thoughts?

stephen-riley commented 4 years ago

@JordyScript , sorry for the delay. Been on COVID duty. 🙄

This is a great idea! I will add it to the list of enhancements in TODO.md!