Calling various macros as functions

24 views
Skip to first unread message

Trey

unread,
Sep 1, 2011, 6:44:50 PM9/1/11
to TiddlyWiki
From the hotkey plugin I'm developing, I'd like to be able to do
things like create new tiddlers, or edit the currently selected
tiddler. However, these are macros. I don't know much about this and
couldn't find a good reference (please let me know of one if it
exists) so I started digging around in the core...

something like saving all tiddlers is easy.
--- if (conditions) {saveChanges();}

But to create a new tiddler I have only found this:
--- config.macros.newTiddler.handler =
function(place,macroName,params,wikifier,paramString)
which isn't something I can call.

How do I get to that macro functionality from my plugin?
Tr3y

PMario

unread,
Sep 1, 2011, 8:04:59 PM9/1/11
to TiddlyWiki

iono...@gmail.com

unread,
Sep 2, 2011, 12:28:25 AM9/2/11
to tiddl...@googlegroups.com
Thanks, PM. I have looked through those now, but I'm still stuck on
my specific question, how to access macro-functionality through
javascript functions. Appreciate any help.

> --
> You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
> To post to this group, send email to tiddl...@googlegroups.com.
> To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
>
>

Alex Hough

unread,
Sep 2, 2011, 3:45:57 AM9/2/11
to tiddl...@googlegroups.com
If i recall FND made a plugin. TiddlyVi [1]
It might be of use?


[1] http://svn.tiddlywiki.org/Trunk/contributors/FND/plugins/TiddlyViPlugin.js

Alex
Reply all
Reply to author
Forward
0 new messages