Re: [tw] Re: Import json merge fields

2015-01-23 Thread BJ
The importing of tiddlers is controlled by 'upgrader' modules - see this tiddler (its in all tiddlywiki) for an example: $:/core/modules/upgraders/plugins.js cheers BJ On Friday, January 23, 2015 at 11:44:10 AM UTC-6, BJ wrote: The importing of tiddlers is controlled by 'upgrader' modules -

Re: [tw] Re: Import json merge fields

2015-01-23 Thread BJ
The importing of tiddlers is controlled by 'upgrader' modules - see here for an example: $:/core/modules/upgraders/plugins.js cheers BJ On Friday, January 23, 2015 at 1:33:49 AM UTC-6, Brian Gates wrote: Is there somewhere I could look to implement this myself? Seems like it shouldn't be

Re: [tw] Re: Import json merge fields

2015-01-23 Thread Tobias Beer
Is there somewhere I could look to implement this myself? Seems like it shouldn't be too difficult. You can start from here... https://github.com/Jermolene/TiddlyWiki5/search?utf8=%E2%9C%93q=import ...and walk your way through the code. For example, the *dropzone* widget triggers the

[tw] Re: Import json merge fields

2015-01-22 Thread Brian Gates
I wrote a script which scrapes character data from roll20.com so that I can easily import stats into my tiddlywiki. Let's say I have a tiddler { title: Gimli, description: Stubborn dwarf } and an export from roll20 which might look like { title: Gimli, str: 16, dex: 10, con: 18, wis: 12, int:

[tw] Re: Import json merge fields

2015-01-22 Thread Tobias Beer
I want an end result with both the description and attributes. Does indeed sound like a reasonable use-case to have an optional update mode than a mere replace mode on import. Best wishes, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWiki

[tw] Re: Import json merge fields

2015-01-22 Thread Tobias Beer
Import the tiddler precisely how you want it? { foo: bar, baz: bar, title: Merge fields test } TiddlyWiki doesn't have any merge-import functionality. Perhaps worth considering... maybe not. Can you be more precise on the background of what you are doing? What are *foo* and *baz*

Re: [tw] Re: Import json merge fields

2015-01-22 Thread Brian Gates
Is there somewhere I could look to implement this myself? Seems like it shouldn't be too difficult. On Thu, Jan 22, 2015 at 6:15 PM, Tobias Beer beertob...@gmail.com wrote: I want an end result with both the description and attributes. Does indeed sound like a reasonable use-case to have an