Silly thought: any chance you were doing some copy/pasting in the
whereabouts of that button or the macros above ?
Just a couple of times, I've had situations in which it felt like I had
hidden characters either at the end of a line or the beginning of the next
line.
Strange problems fixed by going to the start of text on a line, and
backspacing until the line is at the end of the preceding line, then
separating those two lines all over again with a carriage return.
Kind of a goofy thing to try, but at least it doesn't take long.
On Monday, July 26, 2021 at 9:49:29 AM UTC-3 TW Tones wrote:
> Folks,
>
> Deep within a larger project I have some macros. there is a button that
> displays its tooltip but its actions are not occurring. I have spent hours
> trying work out why it is not working when it did previously.
>
> Can anyone see why the first button is visible but not reacting, if it did
> I would then see the second button. Any suggestions would be helpful.
>
> \define field-state-update() $:/state/$(fieldname)$-update
> \define tiddler-field-value-temp()
> $:/temp/$(currentTiddler)$/$(fieldname)$-update
> \define field.update()
> <$list filter="[<field-state-update>!has[title]]" variable=nul>
> <$transclude tiddler=<<field-type-tiddler>> field="field-view"/>
> * <$button class="tc-btn-invisible" tooltip="click to edit
> $(fieldname)$">*
> * <$action-createtiddler $basetitle=<<field-state-update>>
> text="existence toggled in field.update macro"/>*
> * <$action-createtiddler $basetitle=<<tiddler-field-value-temp>>
> text=<<field.value>>/>*
> * {{$:/PSaT/fancy-fields/icons/edit-field}}*
> * </$button>*
> </$list>
> <$list filter="[<field-state-update>has[title]]" variable=nul>
> <$transclude tiddler=<<field-type-tiddler>> field="field-edit"/>
> <$button message="tm-delete-tiddler" param=<<field-state-update>>
> class="tc-btn-invisible" tooltip="finish update of $(fieldname)$">
> {{$:/PSaT/fancy-fields/icons/edit-field}}
> </$button>
> <$button class="tc-btn-invisible" tooltip="Restore $(fieldname)$">
> <$action-setfield $tiddler=<<currentTiddler>> $field=<<fieldname>>
> $value=<$transclude tiddler=<<tiddler-field-value-temp>>/> />
> {{$:/PSaT/fancy-fields/icons/restore-field}}
> </$button>
> </$list>
> \end
>
> More info
>
> I invoke this with <<field.update>> and fieldname field-type-tiddler is
> already set. The green filter never comes true, also proving
> <<field-state-update>> is never created.
> <$action-createtiddler $basetitle=<<field-state-update>> text="existence
> toggled in field.update macro"/>
> <$action-createtiddler $basetitle=<<tiddler-field-value-temp>>
> text=<<field.value>>/>
> So the above actions do not occur.
>
> These lines in the above work on their own
> <$transclude tiddler=<<field-type-tiddler>> field="field-edit"/>
> <$transclude tiddler=<<field-type-tiddler>> field="field-view"/>
>
> Thanks
> Tones
>
--
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/ba5d0201-ab0e-4ea3-abcf-384c1c66485fn%40googlegroups.com.