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

Redefinition of defaultNoteTitle is not working #26

Closed marc-spinozza closed 6 years ago

marc-spinozza commented 6 years ago

I have redefined the following settings in my user space:

"vsnotes.tokens": [
    {
        "type": "datetime",
        "token": "{dt}",
        "format": "YYYYMMDD",
        "description": "Insert formatted datetime."
    },
    {
        "type": "title",
        "token": "{title}",
        "description": "Insert note title from input box.",
        "format": "Untitled"
    },
    {
        "type": "extension",
        "token": "{ext}",
        "description": "Insert file extension.",
        "format": "md"
    }
],
"vsnotes.noteTitleConvertSpaces": "",
"vsnotes.defaultNoteTitle": "{dt} - {title}.{ext}"

Then the filename assigned to a new note is:

20180822-20180822-New_Note.md.md

If you change the default name at note creation time, the filename template is working as expected.

patleeman commented 6 years ago

Fixed in https://github.com/patleeman/VSNotes/commit/5cd39eaf9e69390a45417fa8d5fa000739deb2cf