[tw5] Re: TiddlyDesktop method for exporting individual tiddlers (90% there)
There does seem to be a bug here. Tried multiple other options using both json and .tid core exporters and all of them are null when imported. Not sure why the core exporters are not passing the content to the exported files... As a work around, perhaps there there a more explicit "for each" style loop option that will force individual tiddler save before progressing to the next tiddler? Other ideas? On Tuesday, May 19, 2020 at 3:14:38 PM UTC-7, Jared Lettau wrote: > > Goal: To export individual tiddlers in a format where they can be > imported. > > The code below works well, EXCEPT: > >- It exports as HTML, which when imported doesn't get parsed the way >importing json or .tid files do. If there's a workaround for importing > HTML >that would solve. >- I don't see a way to alter the code to export .tid files. > > One idea would be to mashup functionality from $:/core/macros/export, > however I have been usuccessful in doing so... > > Any help is appreciated. > > https://groups.google.com/forum/#!topic/TiddlyWiki/qUTYW1knPXo > > \define quotedCurrent() $(currentTiddler)$ > \define filename() $(currentTiddler)$.html > > List > tiddlers to export with this tag: <$edit-text tag="input" width="50" > placeholder="Tag name" tiddler="$:/temp/myfavtag"/> > > --- > > <$button>Save the following tiddlers > <$list filter="[tag{$:/temp/myfavtag}]"> > <$action-sendmessage > $message="tm-download-file" > $param="$:/core/templates/exporters/StaticRiver" > exportFilter=<> > > filename=<>/> > > > > > <$list filter="[tag{$:/temp/myfavtag}]"> > <> > > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f59b8bea-1cdb-444d-9ecc-b7120778944f%40googlegroups.com.
[tw5] Re: TiddlyDesktop method for exporting individual tiddlers (90% there)
That works better, but still imperfectly. The "What happened to the original tiddlywiki?" tiddler comes out consistently with 6 blank lines. The question is, why should it make a difference at all? Each tiddler is passed one by one, so the exporter should treat each tiddler on it's own. And it must do this partially, since files are created for all the tiddlers -- but the files are empty. I'm guessing that it has something to do with timing -- that the individual files don't completely process before the next file is queued up. Thanks! -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/da06a37e-b71a-4668-9dbb-1bd54cbc58f3%40googlegroups.com.
[tw5] Re: TiddlyDesktop method for exporting individual tiddlers (90% there)
Hi Mark, It sems to work if you use a cloned version of $:/core/templates/ exporters/TidFile where you remove the +[limit[1]] in the filter. Regards FrD Le mercredi 20 mai 2020 04:18:34 UTC+2, Mark S. a écrit : > > The original post asks about multiple tid files. When I try to adapt your > code like this: > ><$list filter="[tag[HelloThere]]"> > <$action-sendmessage > $message="tm-download-file" > $param="$:/core/templates/exporters/TidFile" > exportFilter=<> > filename={{{ [addsuffix[.tid]] }}} /> > > > > all of the generated files are empty. Is that a bug, or is there some > reason it's not possible to do multiple tid files? > > Thanks! > > On Tuesday, May 19, 2020 at 5:33:46 PM UTC-7, Eric Shulman wrote: >> >> On Tuesday, May 19, 2020 at 3:14:38 PM UTC-7, Jared Lettau wrote: >>> >>> Goal: To export individual tiddlers in a format where they can be >>> imported. >>> >> >> Give this a try: >> Export tiddlers with this tag: >> <$edit-text tag="input" width="50" placeholder="Tag name" tiddler= >> "$:/temp/myfavtag"/> >> >> Found <$count filter="[tag{$:/temp/myfavtag}]"/> matching tiddlers: >> <$list filter="[tag{$:/temp/myfavtag}]"><>> > >> >> <$button> Save to one JSON file >><$action-sendmessage >> $message="tm-download-file" >> $param="$:/core/templates/exporters/JsonFile" >> exportFilter="[tag{$:/temp/myfavtag}]" >> filename="tiddlers.json" /> >> >> <$button> Save to separate JSON files >><$list filter="[tag{$:/temp/myfavtag}]"> >> <$action-sendmessage >> $message="tm-download-file" >> $param="$:/core/templates/exporters/JsonFile" >> exportFilter=<> >> filename={{{ [addsuffix[.json]] }}} /> >> >> >> >> That should do it, or at least get you close to what you want. >> >> Let me know how it goes. >> >> enjoy, >> -e >> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c4044ad9-3fe1-45cd-a173-d3e3d9ecbe84%40googlegroups.com.
[tw5] Re: TiddlyDesktop method for exporting individual tiddlers (90% there)
The original post asks about multiple tid files. When I try to adapt your code like this: <$list filter="[tag[HelloThere]]"> <$action-sendmessage $message="tm-download-file" $param="$:/core/templates/exporters/TidFile" exportFilter=<> filename={{{ [addsuffix[.tid]] }}} /> all of the generated files are empty. Is that a bug, or is there some reason it's not possible to do multiple tid files? Thanks! On Tuesday, May 19, 2020 at 5:33:46 PM UTC-7, Eric Shulman wrote: > > On Tuesday, May 19, 2020 at 3:14:38 PM UTC-7, Jared Lettau wrote: >> >> Goal: To export individual tiddlers in a format where they can be >> imported. >> > > Give this a try: > Export tiddlers with this tag: > <$edit-text tag="input" width="50" placeholder="Tag name" tiddler= > "$:/temp/myfavtag"/> > > Found <$count filter="[tag{$:/temp/myfavtag}]"/> matching tiddlers: > <$list filter="[tag{$:/temp/myfavtag}]"><> > > > <$button> Save to one JSON file ><$action-sendmessage > $message="tm-download-file" > $param="$:/core/templates/exporters/JsonFile" > exportFilter="[tag{$:/temp/myfavtag}]" > filename="tiddlers.json" /> > > <$button> Save to separate JSON files ><$list filter="[tag{$:/temp/myfavtag}]"> > <$action-sendmessage > $message="tm-download-file" > $param="$:/core/templates/exporters/JsonFile" > exportFilter=<> > filename={{{ [addsuffix[.json]] }}} /> > > > > That should do it, or at least get you close to what you want. > > Let me know how it goes. > > enjoy, > -e > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8152e091-7ed5-44f6-9faa-921dfbf03081%40googlegroups.com.
[tw5] Re: TiddlyDesktop method for exporting individual tiddlers (90% there)
Eric, A Version of this that saves selected or filtered tiddlers to a jason tiddler, would be another option and helpful, because it can use the default export mechanism but also be a way to package tiddler that can be dragged and dropped, from the current wiki. Once packed there is not need to maintain a tag on each of the tiddlers. Regards Tony On Wednesday, May 20, 2020 at 10:33:46 AM UTC+10, Eric Shulman wrote: > > On Tuesday, May 19, 2020 at 3:14:38 PM UTC-7, Jared Lettau wrote: >> >> Goal: To export individual tiddlers in a format where they can be >> imported. >> > > Give this a try: > Export tiddlers with this tag: > <$edit-text tag="input" width="50" placeholder="Tag name" tiddler= > "$:/temp/myfavtag"/> > > Found <$count filter="[tag{$:/temp/myfavtag}]"/> matching tiddlers: > <$list filter="[tag{$:/temp/myfavtag}]"><> > > > <$button> Save to one JSON file ><$action-sendmessage > $message="tm-download-file" > $param="$:/core/templates/exporters/JsonFile" > exportFilter="[tag{$:/temp/myfavtag}]" > filename="tiddlers.json" /> > > <$button> Save to separate JSON files ><$list filter="[tag{$:/temp/myfavtag}]"> > <$action-sendmessage > $message="tm-download-file" > $param="$:/core/templates/exporters/JsonFile" > exportFilter=<> > filename={{{ [addsuffix[.json]] }}} /> > > > > That should do it, or at least get you close to what you want. > > Let me know how it goes. > > enjoy, > -e > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b906ea9a-69ce-4bd0-9348-0fedd9e89579%40googlegroups.com.
[tw5] Re: TiddlyDesktop method for exporting individual tiddlers (90% there)
On Tuesday, May 19, 2020 at 3:14:38 PM UTC-7, Jared Lettau wrote: > > Goal: To export individual tiddlers in a format where they can be imported. > Give this a try: Export tiddlers with this tag: <$edit-text tag="input" width="50" placeholder="Tag name" tiddler= "$:/temp/myfavtag"/> Found <$count filter="[tag{$:/temp/myfavtag}]"/> matching tiddlers: <$list filter="[tag{$:/temp/myfavtag}]"><> <$button> Save to one JSON file <$action-sendmessage $message="tm-download-file" $param="$:/core/templates/exporters/JsonFile" exportFilter="[tag{$:/temp/myfavtag}]" filename="tiddlers.json" /> <$button> Save to separate JSON files <$list filter="[tag{$:/temp/myfavtag}]"> <$action-sendmessage $message="tm-download-file" $param="$:/core/templates/exporters/JsonFile" exportFilter=<> filename={{{ [addsuffix[.json]] }}} /> That should do it, or at least get you close to what you want. Let me know how it goes. enjoy, -e -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2b52f9d7-a5e3-4906-a8e3-ee3e4e949d26%40googlegroups.com.