Mohammad et al Nothing is illegal, may be unwise but this a is useful, especially for data tiddlers (Ie a package of tiddlers containing data to be processed by the wiki) . Later I plan to make an easy to use plugin update process.
I am possible the someone mentioned here " Why does this JSON need two steps for import?" If you use the import mechanism to generate a JSON and don't remove the plugin-type import status pending, you basically capture the import in progress. Export or drag this tiddler to another wiki and the import process occurs "again". The value in this is such packages Allow the user to select or review the tiddlers imported. This is useful if you are using this to import data and want to give an intermediate step to the user. Regards Tones On Friday, 14 May 2021 at 03:43:13 UTC+10 Mohammad wrote: > On Thu, May 13, 2021 at 4:07 PM Charlie Veniot <[email protected]> wrote: > >> Because somebody somewhere suggested I do the JSON thing for packaging >> tiddlers instead of putting them in a ZIP file, and this is the result of >> my understanding of what I was suggested to do. >> >> Maybe I missed something. >> > > *Confidential*: > I do not know how you created the JSON in your previous post, but let's do > something NOT allowed legally by Tiddlywiki! > > 1. Open your JSON (Tiddler Viewer Package.json you posted above) in a > text editor , no matter what it is! > 2. Find "plugin-type":"import" at the end of file > 3. Change it to "plugin-type":"plugin" > 4. Save and drag and drop into https://tiddlywiki.com/prerelease/ (or > your own Tiddlywiki) > 5. What you see?!!! > 6. You made a plugin illegally ;-) > 7. This way you can make a plugin in Browser (the KISS way)! > 8. Let's keep this secret ;-) > > This is what you see then! > [image: image.png] > > So you made a plugin by accident! > > > > Cheers > Mohammad > > >> On Thursday, May 13, 2021 at 1:12:17 AM UTC-3 Mohammad wrote: >> >>> Charlie, >>> >>> Why does this JSON need two steps for import? >>> - drag and drop you attached JSON to Tiddlywiki, imports *Tiddler >>> Viewer Package* >>> - clicking on *Tiddler Viewer Package *opens the $:/Import again for >>> the second time? >>> It asks for another import as below. Is this intentional? >>> >>> >>> [image: image.png] >>> >>> >>> Best wishes >>> Mohammad >>> >>> >>> On Wed, May 12, 2021 at 4:52 AM Charlie Veniot <[email protected]> >>> wrote: >>> >>>> Okay, inching closer to something. >>>> >>>> For anybody interested in tracking the evolution of this coding >>>> project, import the attached into TiddlyWiki.com for some safe >>>> experimenting: >>>> >>>> >>>> >>>> On Tuesday, May 11, 2021 at 12:31:59 AM UTC-3 Charlie Veniot wrote: >>>> >>>>> Just scratching a coding itch. >>>>> >>>>> Modify the code in the button, changing the "Some Tiddler" instances >>>>> to an existing tiddler in your TiddlyWiki. (I've been playing with >>>>> TiddlyWiki.com for the giggles.) >>>>> >>>>> Put this code in some tiddler and save the tiddler. Then, press the >>>>> button, and take a look at the new tiddler named the same as this one, >>>>> but >>>>> with the added suffix " Data". >>>>> >>>>> <$button> >>>>> <$vars newLine=" >>>>> " > >>>>> <$vars nCount={{{ [[Some Tiddler]get[text]split<newLine>count[]] }}} >>>>> thisTiddler=<<currentTiddler>>> >>>>> <$list variable="line-num" filter="[range<nCount>]"> >>>>> <$action-setfield $tiddler={{{ [<thisTiddler>addsuffix[ Data]] }}} >>>>> $index={{{ [<line-num>addprefix[line]] }}}, $value={{{ [[Some >>>>> Tiddler]get[text]split<newLine>nth<line-num>] }}}/> >>>>> </$list> >>>>> </$vars> >>>>> </$vars> >>>>> Click me! >>>>> </$button> >>>>> >>>>> Why code that? I'm just got this festering thought: how would I go >>>>> about creating an alternative tiddler editor with "code folding", using >>>>> only TiddlyWiki? >>>>> >>>>> Well, I think it starts with first finding a way to split a tiddler >>>>> into its individual lines. >>>>> >>>>> Just an exercise for the $hit$ and the giggle$, possibly coming to a >>>>> fiery end when I hit the wall ... >>>>> >>>> -- >>>> 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 view this discussion on the web visit >>>> https://groups.google.com/d/msgid/tiddlywiki/ff637e22-050e-4787-9537-b0323ff604e9n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/tiddlywiki/ff637e22-050e-4787-9537-b0323ff604e9n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/tiddlywiki/2c664054-2ff2-41f9-9ff3-c380db8276ban%40googlegroups.com >> >> <https://groups.google.com/d/msgid/tiddlywiki/2c664054-2ff2-41f9-9ff3-c380db8276ban%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/017738c7-6950-440a-94e9-87efc7bfe436n%40googlegroups.com.

