Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: wildcards #66

Open
benetherington opened this issue Oct 7, 2020 · 0 comments
Open

Feature request: wildcards #66

benetherington opened this issue Oct 7, 2020 · 0 comments

Comments

@benetherington
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant