patleeman / VSNotes

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

Markdown Template in VSNotes: How to insert the filename of the generated file #73

Open mseliger opened 4 years ago

mseliger commented 4 years ago

Is it possible to insert the filename of the generated VSNotes file in the markdown template, so that the first line of the note has the same name (with or without extension) as the generated file name of the note? Example: Note Name: 2004811434-VSNotes-Configuration.md First Line of the note should then: # 2004811434-VSNotes-Configuration(.md)

bugrasan commented 4 years ago

While i was trying out the extension i was also looking into that. However I was thinking more like the filename part that you enter as the title - without the timestamp part, of course without the underscore _ replacements for blank

RoneoOrg commented 3 years ago

You can get the filename inserted with $TM_FILENAME. For example "id: $TM_FILENAME"

Refer to the doc for more information