[TW5] Print Button (for tiddlyChromeSaver)

71 views
Skip to first unread message

Matabele

unread,
Oct 20, 2015, 2:07:28 PM10/20/15
to TiddlyWiki
Hi

There may be an easier way, however, I needed to print from a wiki using tiddlyChromeSaver (which doesn't sport a print item in the menu) -- so here goes. Copy the three attached tiddlers across to your wiki; save and reload.

regards
$--_buttons-print.tid
$--_image-print.svg.tid
$--plugins-matabele-x-print.js.tid

Matabele

unread,
Oct 21, 2015, 12:55:42 PM10/21/15
to TiddlyWiki
Hi

I have attached a more capable version of the widget -- this version understands a list of tiddlers to print, specified either directly ($tiddler= "[[tiddler one]] tiddler2 [[and another tiddler]]") or from the output of a filter expression ($filter="[tag[toprint]]".) For example, the print button attached will print out all tiddlers tagged 'toprint'.

The wikitext requires wikifying before printing -- I chose to adopt the simple strategy of opening the list of tiddlers in the story river, then printing the resulting window. This necessitated a delay, in order to ensure that the story river finished updating before the print occurred. The delay (in the action widget) may need tinkering with depending upon your environment -- 500ms works for me.

regards
$--_buttons-print.tid
$--plugins-matabele-x-print.js.tid
Reply all
Reply to author
Forward
0 new messages