Hi everyone, I tried the --savetiddlers command but I get an error saying the command does not exist. Has there been an update?
Instead of breaking down and rebuilding, I'm using the following command to just load the tiddlers folder into the pre-existing wiki to create a new wiki file. (The command also archives the pre-existing wiki.) node tiddlywiki.js wikis/home --verbose --load home.html --rendertiddler $:/core/save/all home-tmp.html text/plain && mv home.html archive/home_$(date +%Y%m%d%H%M%S).html && mv home-tmp.html home.html This step works fine for taking *new* .tid files from 'wikis/home' and incorporating it into a new version of, 'home.html'. However, if I edit an existing .tid file in the text editor, that .tid file will not overwrite the pre-existing tiddler in the wiki if it still has the same title. My question: Is there anything I can do to have tiddlers in the 'wikis/home' directory overwrite their pre-existing wiki counterparts every time I rebuild? My general objective is a solution where edits in the wiki and edits directly in .tid files are always in sync. I understand, of course, that such a syncing solution might be a ways off if it is possible at all. My workaround is to edit both in the wiki and directly in the .tid files but to give precedence to direct edits in the .tid files when I rebuild the wiki. (Editing directly in the .tid files for the majority of my tiddlers is preferable for my workflow. The tiddlers I edit in the wiki are primarily lists to aggregate/slice/dice tiddlers created in .tid text files.) I hope I am sufficiently describing the situation. Thanks in advance for comments and suggestions. Jeff On Thursday, May 23, 2013 4:11:29 PM UTC-4, Chris Nicoll wrote: > > Awesome! Thanks, Jeremy. Now I have a build script and a breakdown script. > I suppose I'd better go do something less fun now. > > Cheers, > Chris > > On Thursday, May 23, 2013 5:54:39 PM UTC+1, Jeremy Ruston wrote: >> >> Hi Chris >> >> It's not covered very clearly in the docs, but here's how to split a >> TiddlyWiki file into separate *.tid files. It should work for both TW >> classic and TW5 documents. >> >> node ./tiddlywiki.js \ >> ./editions/empty \ >> --verbose \ >> --load <path_to_tiddlywiki_html_file> \ >> --savetiddlers [!is[system]] $:/core/templates/tid-tiddler >> <directory_path_for_saving_files> text/plain .tid \ >> || exit 1 >> >> It's a bit clunky in that one has to explicitly load an empty wiki in >> order to import the tiddlers. It also rather unhelpfully saves binary files >> as base64 .tid files; I will add an [is[text]] and [is[binary]] filter for >> that kind of thing. >> >> Anyhow, thanks for the feedback, I will update the documentation, >> >> Best wishes >> >> Jeremy >> >> >> On Thu, May 23, 2013 at 4:50 PM, Chris Nicoll <[email protected]> wrote: >> >>> Hi everybody, >>> >>> As a longtime TW2 user, I'm now interested to get my head around TW5. >>> I've managed to adapt bld.sh to generate a TW where I want it, with >>> tiddlers I've typed into plain-text .tid files. So far, so good. >>> >>> Now I'm wondering whether there's a way to break the Tiddlywiki back >>> down after editing in the browser, so that I can build it again, including >>> the changes I made to the html file in the browser. >>> >>> Sorry if this is obvious or I've missed a topic or doc that covers this. >>> I have searched. I do understand that I can import my tiddlers into a >>> freshly-built empty.html; just curious as to whether there are other ways. >>> >>> Best wishes, >>> Chris >>> >>> >>> -- >>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> >> >> -- >> Jeremy Ruston >> mailto:[email protected] >> > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.

