Thanks for getting back to me, Jeremy. That's odd, the savetiddlers command does exist. Can you show the example > you tried? What version of TW5 are you using? The latest is 5.0.0-alpha.15. >
I ran the following script using alpha.16: #!/bin/bash node ./tiddlywiki.js \ ./wikis/empty \ --verbose \ --load home.html \ --savetiddlers [!is[system]] $:/core/templates/tid-tiddler save/home/ text/plain .tid \ || exit 1 I got the following output in the terminal: Executing command: load home.html *Error: Unknown command: savetiddlers* If I understand your needs correctly, you might be better off running TW5 > as a server (with serve.sh or a variant). Then your tiddlers will always be > .tid files, and will get built into a TW5 html file only when it is needed. > Yes, this sounds like exactly what I want. I successfully ran the serve.sh script and it loads my tiddlers as expected. However, when I make changes in the browser, those changes are not reflected in my .tid files. There is no output in the Firefox console, nor the terminal when I make edits, add tiddlers, etc. At what point are changes in the browser sent through the server and reflected back in the raw .tid files? This process doesn't have anything to do with the save button, does it? When I click save, I just get a prompt to download an .html wiki. If you want to be able to bake a standalone TW5 html file to edit on the > road, you'd save it as you're doing above. Then when you want to sync your > changes, you'd just clear out the wiki folder and re-import everything from > the HTML file. > This is the point where I would need the savetiddlers command, correct? Thanks again for the feedback. In general, I've been looking forward to using the new tiddlywiki for a while now and once I get the server up and running properly, I'll be golden. Jeff On Thu, Nov 28, 2013 at 11:24 AM, Jeremy Ruston <jeremy.rus...@gmail.com>wrote: > Hi Jeff > > I tried the --savetiddlers command but I get an error saying the command >> does not exist. Has there been an update? >> > > That's odd, the savetiddlers command does exist. Can you show the example > you tried? What version of TW5 are you using? The latest is 5.0.0-alpha.15. > > >> >> 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. >> > > If I understand your needs correctly, you might be better off running TW5 > as a server (with serve.sh or a variant). Then your tiddlers will always be > .tid files, and will get built into a TW5 html file only when it is needed. > > If you want to be able to bake a standalone TW5 html file to edit on the > road, you'd save it as you're doing above. Then when you want to sync your > changes, you'd just clear out the wiki folder and re-import everything from > the HTML file. > > 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. >> > > Likewise, don't be afraid to ask more questions! It looks like you've > picked up a lot already. > > Best wishes > > Jeremy > > >> >> 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 <bee...@gmail.com> 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 tiddlywiki+...@googlegroups.com. >>>>> To post to this group, send email to tiddl...@googlegroups.com. >>>>> 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:jeremy...@gmail.com >>>> >>> > > > -- > Jeremy Ruston > mailto:jeremy.rus...@gmail.com > -- 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 post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.