patleeman / VSNotes

Simple VS Code extension for plain text note taking.
https://marketplace.visualstudio.com/items?itemName=patricklee.vsnotes
MIT License
174 stars 33 forks source link

Not able to override meeting snippet #92

Open mateus-amarante opened 3 years ago

mateus-amarante commented 3 years ago

I was not able to override the meeting snippet. I set the markdown user snippet file with:

{
    "vsnote_template_meeting": {
        "prefix": "vsnote_template_meeting",
        "scope": "markdown",
        "body": [
            "---",
            "tags:",
            "\t- meeting",
            "---",
            "\n# $1- $CURRENT_DATE/$CURRENT_MONTH_NAME_SHORT/$CURRENT_YEAR\n",
            "## Agenda\n",
            "$2",
            "## Minutes\n",
            "$3",
        ],
        "description": "Generic meeting template",
    },

And set "vsnotes.templates": [ "meeting" ] in my settings.json file. When add a new note I can select the "meeting" snippet, but it applies the default version provided by the extension. When I hit Ctrl+Space I see the two snippets of the same name.

One suggestion would be removing it from [package.json] (https://github.com/patleeman/VSNotes/blob/654ccd54c8ef59e2ba038c7ce802f6bf61dfcf01/package.json#L248-L252) and leave it just as an example.