Streams Fusion: export from Streams

Try changing line 21 in $:/plugins/phiv/streams-fusion/turndownMacro.js
from

window.TurndownService = require("$:/plugins/sq/typewriter/lib/turndown-browser-umd.js");

to

TurndownService = require("$:/plugins/sq/typewriter/lib/turndown-browser-umd.js");
2 Likes

I was about to release @saqimtiaz fix, but my testing uncovered this is a fix that works only on node.js deployments…

Will try to integrate @cdaven’s superior conversion library today.

I am tied up at present so don’t have the opportunity to fiddle with code, but the other quick fix to attempt is to add this to turndownMacro.js:

exports.platforms = ["browser"];

I’ve pushed version 0.0.14 which removes the turndown library completely (and AFAIK the issue reported with node.js deployments).
For the time being, the optimal way to export to markdown is to fuse to a new tiddler as wikitext and export using @cdaven’s Markdown export plugin. I will try to improve on the theme and use the library without having to export to file. This will require changes to cdaven’s plugin.

We probably need to change this discussions title to remove “(including to Markdown)”

Thanks, with version 0.0.14 everything seems to work.

Hi @saqimtiaz does the typewriter plugin still work on the new version? I got an error screen after intalling it.

@fastfreddy
Hello, I’m loving how Streams-Fusion extends the ‘exportability’ of the base streams plugin.

Is there any way to perchance to export ALL the Streams currently open in your story view? This would be great for creating longer documents from a bunch of smaller streams or sub-streams or even nodes.

Just let me know, thanks!

-Xyvir

Should be relatively easy. Let me look into it over the next couple of weeks.

2 Likes

Have you tried filtering in the Advanced Search Filters tab, then export from there? Although I have not used the aforementioned exporter this is possible with other exporters.

  • In time it would be nice to redirect an export to separate tiddlers (one per file) into a zip file, at first saved in wiki.

Updated: As per default tiddlers “Retain Story Order” option the filter to use to select all open tiddlers is [list[$:/StoryList]] but you may want to use [list[$:/StoryList]] -$:/AdvancedSearch

1 Like

I put together a proof of concept today. Seems doable (and am indeed using the same [list[$:/StoryList]] filter suggested by @TW_Tones above in a list widget to loop through the generation of the fused output).

Will refine and do some minor refactoring (the code is a mess, but I probably can’t tackle more meaningful changes at this time). I did find a trivial bug investigating this though, when selecting raw HTML output. Released the bugfix just now. I am surprised this didn’t surface earlier.

I am probably going to add an optional page icon when wanting to fuse the full story list. If that is not likely an approach that works for you, please circle back here.

Also need to confirm you only want open Stream parent tiddlers (and nodes) to be fused, vs all open tiddlers? Easy filter tweak to [list[$:/StoryList]has[stream-list]]

1 Like

Correct, just the streams-tiddlers. And a page icon works fine! Thanks for working on this!