Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Support multiple snippet prefixes #107

Open
@mnquintana

Description

@mnquintana

Sometimes you may want to have multiple prefixes for expanding the same snippet – currently, if you want to do that, you have to copy-paste a snippet and rename the prefix, which is unnecessary duplication if you just want to have two prefixes for the same snippet.

For example:

'.text.html':
  'Div':
    'prefix': ['div', 'd']
    'body': '<div class="$2">\n\t$3\n</div>'

Instead of:

'.text.html':
  'Div':
    'prefix': 'div'
    'body': '<div class="$2">\n\t$3\n</div>'
  'Div (short)':
    'prefix': 'd'
    'body': '<div class="$2">\n\t$3\n</div>'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions