Skip to content

Feature request: wildcards #66

@benetherington

Description

@benetherington

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions