Wow - that was very clever - I shall study this with interest. But it's not quite right.
<<fold "Tiddler">> Should initially display a fancy styled link saying "Tiddler" (just a single line) When clicked it should unfold in place (ie not in a new tiddler) with the wikiText of Tiddler in an editor so I can edit it (possibly with a live preview) It would be very nice if this worked like org-mode in emacs or the old Occam editor for the transputer (if anybody remembers that :-) Cheers /Joe On Thursday, 3 January 2019 10:44:45 UTC+1, BurningTreeC wrote: > > Hey Joe, something like this? > > \define folding-editor(tiddler) > <$set name="state" value={{{ [[$:/state/folding-editor/]addsuffix > <currentTiddler>addsuffix<__tiddler__>] }}}> > <$reveal stateTitle=<<state>> type="nomatch" text="edit"> > <span style="float: right;"> > <$button class="tc-btn-invisible" setTitle=<<state>> setTo="edit">{{$: > /core/images/edit-button}}</$button> > </span> > <$list filter="[<__tiddler__>is[missing]] > [<__tiddler__>!is[missing]!has[text]]"> > <<__tiddler__>> > </$list> > <$transclude tiddler=<<__tiddler__>> mode="block"/> > </$reveal> > <$reveal stateTitle=<<state>> type="match" text="edit"> > <span style="float: right;"> > <$button class="tc-btn-invisible" setTitle=<<state>> setTo="">{{$:/core/ > images/done-button}}</$button> > </span> > <$edit-text class="tc-edit-texteditor" tiddler=<<__tiddler__>> > tag="textarea" default="" placeholder={{$:/language/EditTemplate/Body/ > Placeholder}}/> > </$reveal> > </$set> > \end > > > >> In my blog >> https://joearms.github.io/#2018-12-26%20Fun%20with%20the%20TiddlyWiki >> >> I have a code fragment like this: >> >> {{ChandlerButtons}} >> {{ChandlerNow}} >> {{ChandlerLater}} >> {{ChandlerDone}} >> >> >> I rather liked this. >> >> Is there a "folding editor" macro - could I write something like: >> >> <<folding-editor "ChandlerButtons">> >> <<folding-editor "ChandlerNow">> >> <<folding-editor "ChandlerLater">> >> <<folding-editor "ChandlerDone">> >> >> Which presents me with a clickable fold to edit the underlying tiddler. >> >> This would be very nice to have :-) >> >> Cheers >> >> /Joe >> >> -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/728501c0-15fa-423e-9ed2-84312707447f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.