mmanela / SnippetDesigner

The Snippet Designer is a plugin which enhances the Visual Studio IDE to allow a richer and more productive code snippet experience.
Apache License 2.0
344 stars 85 forks source link

Support filtering on Snippet Explorer #77

Open mmanela opened 10 years ago

mmanela commented 10 years ago

j2associates[CodePlex]
Add ability to filter by Language, FileName with wildcards, Path with wildcards and ShortCut with wildcards.

mmanela commented 10 years ago

j2associates[CodePlex]
I would suggest both simple filtering and regular expressions filtering. Not everyone is familiar with regular expressions. If you had a filter bar you could have a checkbox for RegularExpressions which would then enable checkboxes for the major options such as CaseInsensitive, MultiLine, SingleLine, etc. when it was unchecked.

If the RegularExpressions was not checked then you could allow the standard Windows wildcards of ? and * and convert them to patterns of .? or .* behind the scenes so that your actual code was always the same thing.

mmanela commented 10 years ago

mmanela[CodePlex]
I will look at adding regular expression matching. That seems like it would meet your needs and be the most robust solution.

mmanela commented 10 years ago

j2associates[CodePlex]
Say you had a list of code snippets to create void methods with up to 5 parms named vm, vm1, vm2, vm3, vm4 and vm5 and a corresponding svm* to create static void methods with up to 5 parms. Assuming that the above represented both the shortcut and file names, you could filter on vm, svm, ?vm, ?vm*, etc. If you wanted to maximize the benefit, allow the user to specify whether or not they wanted to filter using regular expressions. In that case, you could filter by s?vm\d+, etc.

mmanela commented 10 years ago

mmanela[CodePlex]
Can you give me some examples of search strings you want to type in with their expected results?