Navigate to tiddler from Modal (for ai-adapter)

I really do not find my bug :bug: here : Why does the navigation in this macro not work (in a modal) ?(Creating the tiddler works!)

\define confirm-save-actions()
<$action-setfield $tiddler="$:/state/ki-adapter/save-title" text={{{ [{$:/state/ki-adapter/save-title}trim[]] }}}/>
<$action-listops $tiddler={{$:/state/ki-adapter/save-title}} $tags="+[[$:/state/ai-adapter/save-tags]tags[]]" />
<$action-setfield $tiddler={{$:/state/ki-adapter/save-title}} text={{{ [{$:/temp/ki-adapter/save-source}get[text]] }}}/>
<$list filter="[[$:/state/ki-adapter/open-on-save]text[yes]]" variable="ignore">
<$navigator story="$:/StoryList" history="$:/HistoryList">
<$action-navigate $to={{$:/state/ki-adapter/save-title}}/>
</$navigator>
</$list>
<$action-sendmessage $message="tm-close-tiddler" />
<$action-deletetiddler $tiddler="$:/state/ki-adapter/save-title"/>
<$action-deletetiddler $tiddler={{$:/temp/ki-adapter/save-source}}/>
\end

For testing this in its habitat you can download the entire ai-adapter here: Another AI-Adapter for TW - #8 by JanJo

1 Like

Having a <$navigator> there looks wrong

Thank you… but

  • it does not work without navigator either.
  • I thougt the use of navigator is exactly if you navigate to a tiddler within the storyriver from outside or to another stroryriver…

But thank you a lot @buggyj … checking your reply I found out that the way I built the list-widget around it was wrong…