I enjoy very much!

Thank you 😀

On Thursday, 26 November 2020 at 11:57:14 am UTC+10 Eric Shulman wrote:

> On Wednesday, November 25, 2020 at 5:01:52 PM UTC-8 
> ad...@menswellbeing.org wrote:
>
>> Is it possible to save the story-river into a tiddler and then use that 
>> tiddler to open that story-river at a later time?
>>
>
> The current StoryRiver contents are stored in $:/StoryList!!list.
>
> Here's a tiddler that defines two buttons...
> one to save the current  $:/StoryList!!list field to a separate tiddler 
> tagged with "savedStory",
> and another to set the  $:/StoryList!!list from the list field in a 
> "savedStory" tiddler:
>
> *StorySaver:*
> <$button popup="$:/state/popup/savestory"> 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[savedStory]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[savedStory]]"><option><<currentTiddler>></option></$list>
>       </$select>
>    </$list>
>    <$button style="text-align:center;"> save
>       <$action-setfield $tiddler={{$:/state/popup/savestory!!storyname}} 
> list={{$:/StoryList!!list}} tags="savedStory" />
>       <$action-deletetiddler $tiddler="$:/state/popup/savestory" />
>    </$button>
> </$reveal>
> <$button popup="$:/state/popup/loadstory"> 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[savedStory]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[savedStory]]"><option><<currentTiddler>></option></$list>
>       </$select>
>    </$list>
>    <$button style="text-align:center;"> load
>       <$action-setfield $tiddler="$:/StoryList" list={{{ 
> [{$:/state/popup/loadstory!!storyname}get[list]] }}} />
>       <$action-deletetiddler $tiddler="$:/state/popup/loadstory" />
>    </$button>
> </$reveal>
>
> To use these buttons, just insert {{StorySaver}} into any tiddler.  
> Alternatively, you can add these buttons to the Sidebar by tagging the 
> above tiddler with $:/tags/SideBarSegment.  After tagging, you can 
> reposition the buttons in the SideBar by viewing the tiddler and clicking 
> on the $:/tags/SideBarSegment tag to display the list of tiddlers with that 
> tag.  You can then use drag-and-drop to move the buttons to the desired 
> position in the list (e.g.,  above the $:/core/ui/SideBarSegments/tabs)
>
> enjoy,
> -e
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1db0c11e-4edc-48c4-bbac-a161b2caf9b3n%40googlegroups.com.

Reply via email to