Actions attribute of tag-picker macro does not support nested procs (variables)

Said another way, the transclusion of <<actions>> in the tag-picker, fails if the transclusion contains nested variables:

\procedure tag-actions()
  \procedure update()
    <!--  do things -->
  \end update
<<update>>
\end tag-actions


<$transclude $variable=tag-picker tagField="my-tags" actions=<<tag-actions>> />

Output:

image

Workaround: Move the inner procedure outside the outer procedure.


EDIT: updated the code for clarity

TW-core does not have an action-timeout-widget. So link to the plugin is missing.

Don’t be distracted by Eric’s plugin. It was excluded from the test conducted on tiddlywiki.com

Understand too, it’s not the execution of the outer proc that’s at issue. tag-picker can’t handle the actions transclusion.

@pmario

tested at tiddlywiki.com

Thank you @CodaCoder I’m investigating, but just to point out that screenshots of code can be frustrating, it would be much more useful to have snippets that I can copy and paste.

Updated [BUG] 5.3.1 Actions attribute of tag-picker macro does not support nested procs (variables) · Issue #7853 · Jermolene/TiddlyWiki5 · GitHub with code.

Oh wait. Original report (OP) does contain code.

Thank you @CodaCoder there’s a draft fix here:

Works for me. :white_check_mark: