You could make a second button to reverse, quite easity using an alternative actions +[cycle<pals>reverse[]]
but untested.
- Of note is if you dont have too many items you can by definition cycle back to the begining.
- However to allow a modifier key to alter which action occurs chaNge the code so;
\define cycle-palettes()
<$set name=pals filter="[all[tiddlers+shadows]prefix[$:/palettes/Captivate]]">
<$action-listops $tiddler="$:/palette" $field="text" $subfilter="+[cycle<pals>]"/>
</$set>
\end
To include a modifier test, again untested.
\define cycle-palettes()
<$list filter="[<modifier>match[normal]]" variable=~>
<$set name=pals filter="[all[tiddlers+shadows]prefix[$:/palettes/Captivate]]">
<$action-listops $tiddler="$:/palette" $field="text" $subfilter="+[cycle<pals>]"/>
</$set>
</$list>
<$list filter="[<modifier>match[alt]]" variable=~>
<$set name=pals filter="[all[tiddlers+shadows]prefix[$:/palettes/Captivate]]">
<$action-listops $tiddler="$:/palette" $field="text" $subfilter="+[cycle<pals>reverse[]]"/>
</$set>
</$list>
\end