I would like to replace the behavior of creating a newtiddler.
I currently use my txt2tags tiddlywiki plugin and create a specific
new tiddler in txt2tags format with the following macro:
<<newTiddler
label: "New t2t"
title: "New t2t tiddler"
fields: "wikiformat:t2t"
prompt: "Create a new tiddler using the t2t formatter">>
This works for clicking a button to make a new tiddler, but what about
the behavior of clicking a non-existing tiddler? The new tiddler
created in that case is still a standard tiddler.
Can I replace this behavior? I have tried putting the following into
the code section of my plugin:
merge(config.macros.newTiddler,{
label: "new tiddler",
prompt: "Create a new tiddler",
title: "New Tiddler",
fields: "wikiformat:t2t",
accessKey: "N"});
It didn't make the change desired.
How would I go about doing this?
Also, can I explicitly create a non-t2t tiddler if I make this change?
Perhaps with a macro with "fields: 'emptystring'"...?
Thanks.
--
David Young
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.