It remind me this old Tobias solution : 
http://tobibeer.github.io/tb5/#Saving%20And%20Loading%20A%20History%20Snapshot

Le jeudi 26 novembre 2020 à 23:09:33 UTC+1, [email protected] a écrit :

> Nice work Eric!!!
>
> On Wednesday, November 25, 2020 at 5:57:14 PM UTC-8 Eric Shulman wrote:
>
>> On Wednesday, November 25, 2020 at 5:01:52 PM UTC-8 
>> [email protected] 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/56a845da-90cd-4f38-970d-8bfc204fb1e4n%40googlegroups.com.

Reply via email to