pviswanathan/ChromeAutoTextExpander

Feature request: wildcards

Opened this issue · 0 comments

It would be great to be able to add a wildcard to a shortcut, then use that wildcard in the expanded text.

For instance, I'd like to expand "1|contact" to "V1 | IV fm. | Contact". I'd like to be able to format a shortcut as "?|contact" => "V? | IV fm. | Contact" to make this happen. Suggest using "?" for single characters and "*" for multiple characters, though I suspect a small upper limit would have to be set for performance. A more complex version of this feature might allow wildcard naming or indexing, to allow the expanded string to reference more than one wildcard.

I'd love to submit a pull request if I can figure this out. I think ate.js line 212 would be the place to start, yes? Instead of checking keys, you would have to do string matching against an array of keys?