clutterstack, I would like to try this out, but it looks like everything is inside the define / end. Is there a button I have to put after the /end? Or does the /end need to move up somewhere?
On Sat, Nov 28, 2020 at 8:43 PM clutterstack <[email protected]> wrote: > OK, how about this for the button actions? Usual disclaimers about backing > up data! > > \define newHereActions() > <$set name="tags" filter="[<currentTiddler>] > [{$:/config/NewTiddler/Tags!!tags}]"> > <$action-createtiddler $basetitle=<<currentTiddler>> > $savetitle=!!latestHere tags=<<tags>> text="* " caption="" > meta="note"/><$action-navigate $to={{!!latestHere}}/><$action-sendmessage > $message=tm-edit-tiddler $param={{!!latestHere}}/><$action-setfield > $field=latestHere/> > </$set> > \end > > I didn't get tm-navigate to work with a brief effort, but action-navigate > seems good. In fact, the whole thing seems to work if I omit > action-navigate, but control over the location in the Story may make it > worth keeping. The final action-setfield deletes the !!latestHere field > used to store the new tiddler's title for the use of the newHereActions. > > I wonder if there's a cleaner way. > > Best, > Chris > On Saturday, November 28, 2020 at 4:27:10 PM UTC-5 clutterstack wrote: > >> ...action-createtiddler, tm-navigate message, and then tm-edit-tiddler? >> >> I'm curious to see the "right" answer to this. :) >> >> On Saturday, November 28, 2020 at 4:20:59 PM UTC-5 clutterstack wrote: >> >>> Now I'm trying that, and wondering if it might be easier to create the >>> tiddler the way you did, and then just remove the superfluous tags with >>> action-listops... >>> >>> But many others here would know off the bat the best way to increment >>> the title; I'd have to look into it. >>> >>> Best, >>> Chris >>> >>> On Saturday, November 28, 2020 at 4:16:37 PM UTC-5 clutterstack wrote: >>> >>>> Hi David, >>>> >>>> Looks like you are using the tm-new-tiddler message using the original >>>> tiddler as a template ("$param"), and need to change it to use a title >>>> parameter instead: >>>> https://tiddlywiki.com/#WidgetMessage%3A%20tm-new-tiddler >>>> >>>> Best, >>>> Chris >>>> On Saturday, November 28, 2020 at 9:36:11 AM UTC-5 David Gifford wrote: >>>> >>>>> Hi everyone! >>>>> >>>>> Below is the snippet for my "New tab here" button. It creates a new >>>>> tiddler, with the title of the parent tiddler as the title and the tag of >>>>> the child tiddler. A tabs macro in the parent tiddler displays the >>>>> children >>>>> tiddlers as tabs. >>>>> >>>>> The only problem I have is that the child tiddlers inherit the tags of >>>>> the parent. I would like for that behavior to stop. >>>>> >>>>> What do I need to delete, add or change for that to happen? I tried >>>>> various things but nothing worked. I appreciate any help I can get. >>>>> Blessings. >>>>> >>>>> \whitespace trim >>>>> \define newHereActions() >>>>> <$set name="tags" filter="[<currentTiddler>] >>>>> [{$:/config/NewTiddler/Tags!!tags}]"> >>>>> <$action-sendmessage $message="tm-new-tiddler" >>>>> $param=<<currentTiddler>> tags="" tags=<<tags>> text="* " caption="" >>>>> meta="note"/> >>>>> </$set> >>>>> \end >>>>> \define newHereButton() >>>>> <$button actions=<<newHereActions>> >>>>> tooltip={{$:/language/Buttons/NewHere/Hint}} >>>>> aria-label={{$:/language/Buttons/NewHere/Caption}} >>>>> class=<<tv-config-toolbar-class>>> >>>>> <$list filter="[<tv-config-toolbar-icons>match[yes]]"> >>>>> {{$:/core/images/folder}} >>>>> </$list> >>>>> <$list filter="[<tv-config-toolbar-text>match[yes]]"> >>>>> <span class="tc-btn-text"> >>>>> <$text text={{$:/language/Buttons/NewHere/Caption}}/> >>>>> </span> >>>>> </$list> >>>>> </$button> >>>>> \end >>>>> <<newHereButton>> >>>> >>>> -- > 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/cDtOKYupbnI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/4e20398c-2655-4012-b232-9e2c2bc80772n%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/4e20398c-2655-4012-b232-9e2c2bc80772n%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/CANE%3DBFLzx1McKAfoOG_Vy%3DOajWNRTdxk%3D1fvV36YO2y-_s5raQ%40mail.gmail.com.

