On Sunday, November 10, 2013 09:02, Jeremy Ruston wrote
regarding Re: [tw] Re: [TW5] Is there a way to import multiple tiddlers from a
single file?:
> The "browse" button in TiddlyWiki5 should let you select multiple files - what
> browser are you using?
Firefox 24.0 for Linux. Just double-checked. I cannot select multiple
files using the Browse button, for some reason. It could be some
parameter of the button which has different default value in different
browsers.
> The easiest way to import a bunch of tiddlers at once is to use a .json file
> containing an array of tiddler field objects. For example:
>
> [
> {"title":"Tiddler1","text":"Text of tiddler},
> {"title":"Tiddler2","text":"Text of tiddler}
> ]
This worked. (you missed closing quotation marks). I thought, there
should be a solution like that, but have not come across anything like
that.
Thanks a lot.
> You can import a JSON file with drag and drop in the browser, or via the
> --load
> command under node.js.
>
> Can Perl conveniently create JSON files?
Yes. I'm very familiar with Perl. I often use it at work. I think, it
was originally created to process text files. Most likely, there is a
Perl module to handle JSON files, but the syntax is simple enough to
create them manually. The JSON file you describe seems to be very easy
to create from a CSV file using any text editor. My favorite Vim would
work just fine.
--
Arkady
--
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.