VSNotes icon indicating copy to clipboard operation
VSNotes copied to clipboard

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

Open mseliger opened this issue 5 years ago • 2 comments

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)

mseliger avatar Feb 17 '20 14:02 mseliger

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

bugrasan avatar Mar 25 '20 07:03 bugrasan

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

Refer to the doc for more information

RoneoOrg avatar Feb 12 '21 08:02 RoneoOrg