Hi Richard
Thank you very much for taking your time to show how you do it :-)
Very helpfull!
Now I will need to do some experiments.
Is it also possible to create a "master" JSON tiddler/file which will be
imported as a single tiddler where all defined tiddlers will exist/behave
like shadow tiddlers?
I guess what I'm asking is how to turn the resulting JSON file into a
plugin...
When I look at the $:/core tiddler it seems that all there is needed is one
extra top layer:
"{
"tiddlers": {
"TiddlerTitle": {
"title": "TiddlerTitle",
"type": "text/vnd.tiddlywiki",
"text": "Tiddler text with \n linebreaks"
},
"NewTiddlerTitle": { ... etc...
If my assumption is correct it should be fairly easy to create a spredsheet
like your's and make the resulting JSON file create shadow tiddlers.
If this is possible I will maintain/update these shadow tiddlers with
Andreas' Tinka plugin - and be able to import all these tiddlers into other
TWs as if they were part of a plugin..
Am I on the right track?
Cheers Måns Mårtensson
Den lørdag den 23. maj 2015 kl. 05.20.38 UTC+2 skrev Richard Smith:
>
> Hi Mans,
>
> Starting with a spreadsheet - data in colums, no headers - put a blank
> column inbetween each, starting at the beginning and, in the top cell, add
> little snippets like this...
>
> { "text": "
>
> so that, as a whole, a single line of the spreadsheet reads as a valid
> json entry, with a comma at the end, and 'fill' down the sheet, so it looks
> like this...
>
>
> <https://lh3.googleusercontent.com/-r6SDMepHHYc/VV_wEguePqI/AAAAAAAAA_4/7SVc-hDx8tQ/s1600/Screen%2BShot%2B2015-05-23%2Bat%2B1.03.23%2Bpm.png>
> Then copy and paste the columns into a friendly text editor (not a
> word-processor). When I do it I get some kind of 'tab' character that I
> need to globally remove (search and replace all). I've highlighted it in
> the top left of this screenshot.
>
>
> <https://lh3.googleusercontent.com/-QjPOY0TnAtE/VV_xJNeyrQI/AAAAAAAABAA/fY9NcKgSZtM/s1600/Screen%2BShot%2B2015-05-23%2Bat%2B1.08.06%2Bpm.png>
> Then I add opening and closing square brackets and save it as .json
>
>
> <https://lh3.googleusercontent.com/-79r35DvmyBQ/VV_xVzPCVGI/AAAAAAAABAI/UpgR6pCPHqM/s1600/Screen%2BShot%2B2015-05-23%2Bat%2B1.08.34%2Bpm.png>
> Drag it into TW and it appears like a regular import.
>
>
> <https://lh3.googleusercontent.com/-eFuxd_WxrIA/VV_xn2APjSI/AAAAAAAABAQ/oKPJ7fFkhTY/s1600/Screen%2BShot%2B2015-05-23%2Bat%2B1.18.01%2Bpm.png>
> NB: if there's anything wrong with your json, you get a big red warning
> but nothing breaks - but use a backup, obviously.
>
> Regards,
> Richard
>
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/4c49ec6c-59fc-4640-9090-d60276d3abf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.