First of all, I thank you for your patience, and apologies for my stubbornness
Can this be done within the $action-setfield itself, without using listops?
-Maybe I’m very incompetent or maybe I explained myself badly. In case I explained myself badly, I’ll give more context (which perhaps was necessary, but I didn’t want to put it at first so as not make people read too much unnecessary text)
I tried to insert, or modify already existing parts to implement the proposed solution, but with little luck
Basically I’m trying to modify the code shared by Eric Shulman in a past google group conversation, specifically the edited version by Soren Bjornstad
What I wanted to do, was to add a second tag (along with $:/sib/StorySaver/SavedStory) to the tiddlers that are created which I usually use for all the “service” tiddlers so that I can manage them together with other settings
Full code: (Interested parties are marked with “HERE”)
<!-- Eric Shulman, https://groups.google.com/g/tiddlywiki/c/2WWN0Lf0G-E, alt. -->
<!-- HERE (1) --> <$set name=savedStoryTag value="$:/sib/StorySaver/SavedStory">
<$set name=savedStoryPrefix value="$:/sib/StorySaver/saved/">
<$button popup="$:/state/popup/savestory"> {{$:/core/images/save-button}} save story </$button>
<$reveal type="popup" state="$:/state/popup/savestory" class="tc-drop-down tc-popup-keep" style="min-width:auto;padding:0.5em;">
Enter a new story name:<br>
<$edit-text tiddler="$:/state/popup/savestory" field="storyname" /><br>
<$list filter="[tag<savedStoryTag>limit[1]]">
or, select an existing story:<br>
<style> .savedStoryList { width:100%; } </style>
<$select tiddler="$:/state/popup/savestory" field="storyname" size="5" class="savedStoryList">
<$list filter="[tag<savedStoryTag>removeprefix<savedStoryPrefix>]"><option><<currentTiddler>></option></$list>
</$select>
</$list>
<$button style="text-align:center;"> save
<!-- HERE (2) --> <$action-setfield $tiddler={{{ [{$:/state/popup/savestory!!storyname}addprefix<savedStoryPrefix>] }}} list={{$:/StoryList!!list}} tags=<<savedStoryTag>> />
<$action-deletetiddler $tiddler="$:/state/popup/savestory" />
</$button>
</$reveal>
<$button popup="$:/state/popup/loadstory"> {{$:/core/images/storyview-classic}} load story </$button>
<$reveal type="popup" state="$:/state/popup/loadstory" class="tc-drop-down tc-popup-keep" style="min-width:auto;padding:0.5em;">
<$list filter="[tag<savedStoryTag>limit[1]]" emptyMessage="no saved stories">
select an existing story:<br>
<style> .savedStoryList { width:100%; } </style>
<$select tiddler="$:/state/popup/loadstory" field="storyname" size="5" class="savedStoryList">
<$list filter="[tag<savedStoryTag>removeprefix<savedStoryPrefix>]"><option><<currentTiddler>></option></$list>
</$select>
</$list>
<$button style="text-align:center;"> load
<$action-setfield $tiddler="$:/StoryList" list={{{ [{$:/state/popup/loadstory!!storyname}addprefix<savedStoryPrefix>get[list]] }}} />
<$action-deletetiddler $tiddler="$:/state/popup/loadstory" />
</$button>
</$reveal>
<$button popup="$:/state/popup/exportstory"> {{$:/core/images/export-button}} export story </$button>
<$reveal type="popup" state="$:/state/popup/exportstory" class="tc-drop-down tc-popup-keep" style="min-width:auto;padding:0.5em;">
<$list filter="[tag<savedStoryTag>limit[1]]" emptyMessage="no saved stories">
select an existing story:<br>
<style> .savedStoryList { width:100%; } </style>
<$select tiddler="$:/state/popup/exportstory" field="storyname" size="5" class="savedStoryList">
<$list filter="[tag<savedStoryTag>removeprefix<savedStoryPrefix>]"><option><<currentTiddler>></option></$list>
</$select>
</$list>
<$macrocall $name="exportButton" exportFilter={{{ [{$:/state/popup/exportstory!!storyname}addprefix<savedStoryPrefix>get[list]] }}} lingoBase="$:/language/Buttons/ExportTiddlers/"/>
</$reveal>
</$set>
</$set>