thanks for the update and credit. I also made a small tweak to the `tid`
snippet to add a dropdown list for the content-type (no more guesswork):
"Tiddler Metadata": {
"prefix": "tid",
"body": [
"created:
$CURRENT_YEAR$CURRENT_MONTH$CURRENT_DATE$CURRENT_HOUR$CURRENT_MINUTE${CURRENT_SECOND}000"
,
"modified:
$CURRENT_YEAR$CURRENT_MONTH$CURRENT_DATE$CURRENT_HOUR$CURRENT_MINUTE${CURRENT_SECOND}333"
,
"tags: ${1:spaceseparator}",
"title: ${2:$TM_FILENAME_BASE}",
"type:
${3|text/vnd.tiddlywiki,text/css,text/x-markdown,text/html,text/csv,text/plain,application/javascript,application/json,image/svg+xml|}"
,
"$0"
],
"description": "insert tiddler metadata"
}
it looks like this :
USAGE : either place in user snippets or wait for Joshua to update his
extension..
it's also possible to manually update the json snippet in
%USERPROFILES%\.vscode\extensions\joshua-fontany.tw5-syntax-1.0.1\snippets
cheers.
_Ph.
On Sunday, July 19, 2020 at 8:08:39 AM UTC+2, Joshua Fontany wrote:
>
> [Visual Studio Code] TiddlyWiki5 Syntax Extension v1.0.1
>
> https://marketplace.visualstudio.com/items?itemName=joshua-fontany.tw5-syntax
>
>
> v1.0.1 Update brings the following:
>
> ## 1.0.1
>
> - Fixed snippets to correctly render widget syntax, `<$button> </$button>`.
> - Added a very nifty "Tiddler Metadata" snippet, `tid`, which will insert a
> block of tiddler meta-data fields into an empty
> *.tid file. Just type `tid` and press tab. `created` and `modified` fields
> come automatically timestamped, and you can tab to move between field values.
> -- Very neat, thanks a lot to "_Phi / hpx1" for this snippet!
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/f9199a22-ba0a-42c7-b437-816e1ed30ed3o%40googlegroups.com.