pajoma / vscode-journal

Lightweight journal and simple notes support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pajoma.vscode-journal
GNU General Public License v3.0
233 stars 40 forks source link

Titel of document contains additional whitespace #2

Closed kaiwood closed 7 years ago

kaiwood commented 7 years ago

When a new document gets created, the title contains one trailing space, see attached screenshot. (the red color if from another extension that shows whitespace, just in case you wonder)

vscode-journal

Same problem for journal:note with a custom title.

pajoma commented 7 years ago

Thanks for the hint. You can change it yourself in the setting ´journal.tpl-page´, the default value is # {content} \n\n (with {content} being replaced by the date or note title string). The space before the linebreak ´\n´ is the problem here, you can just remove it, I will change it for the next version.

kaiwood commented 7 years ago

Ah, great, that setting works!

And by the way: Thank you so much for this extension. I had something similar for VoodooPad (https://github.com/kaiwood/voodoopad-journal) which I am no longer using and was about to write something similar for VSCode when you released this one. Saved me quite some time that you did it. Keep up the good work 👍

pajoma commented 7 years ago

Thanks, glad to have saved you some time ;)