Re: [tw] Re: Import json merge fields
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 - 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 too difficult. >> >> >> >> On Thu, Jan 22, 2015 at 6:15 PM, Tobias Beer wrote: >> >>> 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 a topic in the >>> Google Groups "TiddlyWiki" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/tiddlywiki/1oyGR2yoGpM/unsubscribe. >>> To unsubscribe from this group and all its topics, 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. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- 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/d/optout.
Re: [tw] Re: Import json merge fields
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 too difficult. > > > > On Thu, Jan 22, 2015 at 6:15 PM, Tobias Beer > wrote: > >> 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 a topic in the >> Google Groups "TiddlyWiki" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/tiddlywiki/1oyGR2yoGpM/unsubscribe. >> To unsubscribe from this group and all its topics, 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. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/d/optout.
Re: [tw] Re: Import json merge fields
> > 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%93&q=import ...and walk your way through the code. For example, the *dropzone* widget triggers the importer at various locations... https://github.com/Jermolene/TiddlyWiki5/blob/d8cc283b3a571ff144ef88f49cf23db1897e4281/core/modules/widgets/dropzone.js And then the *navigator* module appears to handle the *tm-import-tiddlers* action: https://github.com/Jermolene/TiddlyWiki5/blob/1adfe20508116da0ee4b5c9e72ea9742f24b60c9/core/modules/widgets/navigator.js#L451 And then there is some upgrader module being hooked in... https://github.com/Jermolene/TiddlyWiki5/blob/1adfe20508116da0ee4b5c9e72ea9742f24b60c9/core/modules/widgets/navigator.js#L479 All in all, we woul need a differnt ui other than a mere checkbox per tiddler and a button at the end. Perhaps that's the right starting point. To first design a meaningful ui and then figure out where and how to bind it. Best wishes, Tobias. -- 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/d/optout.
Re: [tw] Re: Import json merge fields
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 wrote: >> >> 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 a topic in the Google > Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/1oyGR2yoGpM/unsubscribe. > To unsubscribe from this group and all its topics, 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/d/optout. -- 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/d/optout.
[tw] Re: Import json merge fields
> > 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" 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/d/optout.
[tw] Re: Import json merge fields
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: 10, cha: 8 }. I want an end result with both the description and attributes. On Thursday, January 22, 2015 at 5:38:21 PM UTC-8, Tobias Beer wrote: > > 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* and why do you want to merge rather than replace? > > Best wishes, Tobias. > -- 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/d/optout.
[tw] Re: Import json merge fields
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* and why do you want to merge rather than replace? Best wishes, Tobias. -- 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/d/optout.