When I try this:
<$button> <$action-setfield list={{{[tag[mytag]]}}}/>Set List </$button>
I get the first list item into list field. Is there a way I can get all the titles into list field? I need it for next[] and previous[] operators. They require hard-coded list field to work properly, I'm looking for a way to at least generate this hard coded value.
As for what I need it for, I've made this little monster to navigate between ToC chapters sequentially.
It requires all the chapters to be in the list field of the tiddler it's called from.
Haven't found any complete solution so built one myself. If there is a more reasonable way to do it esp without hard-coded lists, I'm very open to suggestions.
$sel$ is the state tiddler for ToC selection (current item variable for all intents and purposes...), the reveals hide navigation when no item is selected - have tried to monitor filter state to hide when there is no next or prev item but couldnt bind it to current $sel$ tiddler value correctly.
\define TocNav(sel:"TovTest")
<$set name=selection value=$sel$>
<$set name=selectionValue value={{$sel$}}>
<!-- Debug
$sel$
<<selection>>
<<selectionValue>>
selection prev: {{{[<selectionValue>previous<currentTiddler>]}}}
<<selectionValue>>
selection next: {{{[<selectionValue>next<currentTiddler>]}}}
Debug !--->
<$reveal type="nomatch" state=<<selection>> text="">
<div>
<$button>
<$action-setfield $tiddler=<<selection>> text={{{[<selectionValue>previous<currentTiddler>]}}} />
<$action-navigate $to=<<currentTiddler>>/>
{{$:/core/images/chevron-left}}
</$button>
<$button><$action-navigate $to=<<currentTiddler>>/>{{$:/core/images/chevron-up}}
</$button>
<$button>
<$action-setfield $tiddler=<<selection>> text={{{[<selectionValue>next<currentTiddler>]}}} />
<$action-navigate $to=<<currentTiddler>>/>
{{$:/core/images/chevron-right}}</$button>
</div>
</$reveal>
</$set>
</$set>
\end