If you transformed the array of tiddlers you are passing to addTiddlers
into an array of just one tiddler such that that tiddler has the format you see when you edit $:/Import
, then it will be rendered using TW’s normal import mechanism. That way you can see the list of tiddlers like you want. After the user clicks the Import button, the import tiddler shows a list of the tiddlers which were imported. That seems close to what you are asking for.
The format for the text field of $:/Import
is
{
"tiddlers": {
"my tiddler title1": {"<key value pairs of tiddler fields here>"},
"my tiddler title2": {"<key value pairs of tiddler fields here>"},
...
}
}
and the tiddler should also have a field plugin-type
with value import
.
Unfortunately that format is very different from the format addTiddlers takes as input:
[
{"<key value pairs of tiddler fields here>"},
{"<key value pairs of tiddler fields here>"},
...
]
This latter format is the format you can use to drop tiddlers into your wiki, so there should be some function in TW which is converting that format to the first format above. I looked, but didn’t find that function yet. If that function does exist then you can call $tw.wiki.addTiddlers($tw.wiki.someTransformationFunction([...]))
in your bookmarklet.