[Visual Studio Code] TiddlyWiki5 Syntax Extension v1.0.1

154 views
Skip to first unread message

Joshua Fontany

unread,
Jul 19, 2020, 2:08:39 AM7/19/20
to TiddlyWiki
[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!

_Phi / hpx1

unread,
Jul 20, 2020, 7:45:53 PM7/20/20
to tiddl...@googlegroups.com
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 :
either place in user snippets or it's also possible to manually update the json snippet in %USERPROFILES%\.vscode\extensions\joshua-fontany.tw5-syntax-1.0.1\snippets.

Joshua, I'm making a pull request on GitHub for this small modification.

cheers.
_Ph.

TW Tones

unread,
Jul 20, 2020, 8:00:27 PM7/20/20
to TiddlyWiki
Josua,

Do I understand correctly this only works in the Visual Studio code editor?

I would be keen to get this to work properly in a tiddlywiki editor such as codemirror but I have not seen a tiddlywiki aware code highlighter.

Is there a practical way to maintain a single syntax library?

Regards
Tony

Joshua Fontany

unread,
Jul 20, 2020, 8:51:29 PM7/20/20
to TiddlyWiki
v1.0.2 Update Published!

## 1.0.2
- Updated `tid` Snippet to offer a dropdown of `type` field options.
-- Mahalo to "_Phi / hpx1" for the contributions!

Mohamed Amin

unread,
Oct 2, 2020, 3:31:24 AM10/2/20
to TiddlyWiki
Thanks a MILLION Joshua for this great extension, I just used it in one of my project, and it REALLY helped me a lot.

Regards


On Sunday, July 19, 2020 at 8:08:39 AM UTC+2, Joshua Fontany wrote:
Reply all
Reply to author
Forward
0 new messages