Mark,
Thank you for your hint. I solved it this way

\define newList() [[$(v1)$]] $(v2)$


<$list filter="[list[$:/StoryList]]" variable="v2">
<<v2>>
</$list>

<$button>Change List
  <$set name="v1" value={{$:/HistoryList!!current-tiddler}}>
    <$set name="v2" filter=" [list[$:/StoryList]]">
      <$action-setfield $tiddler="$:/StoryList" list=<<newList>> />
    </$set>
  </$set>
</$button>



This works now, but I am not sure if this is the correct method!



On Tuesday, July 31, 2018 at 9:46:24 AM UTC+4:30, Mark S. wrote:
>
> Hi Mohammad,
>
> It appears to me that the effects of changing the view occur *after* the 
> button has run, so any navigation is no longer in effect. It might be 
> possible to re-order the StoryList, so that the tiddler you want to 
> navigate to is at the top of the list. Since the restore puts the user at 
> the top of the page (or leaves the user there), that is *almost* the same 
> thing as navigating to the item. 
>
> -- Mark
>
> On Sunday, July 29, 2018 at 8:10:58 PM UTC-7, Mohammad wrote:
>>
>> Mark, check the reverse!
>> When you go back to classic view from zoomin view , it does not work!
>>
>> Let me know your solution!
>>
>>
>> Mohammad
>>
>>
>> On Monday, July 30, 2018 at 3:55:53 AM UTC+4:30, Mark S. wrote:
>>>
>>> When I zoomin like this:
>>>
>>> <$button>Zoom in
>>> <$set name=vlastviewed tiddler={{$:/HistoryList!!current-tiddler}} 
>>>  field="text">
>>> <$action-setfield $tiddler="$:/view" text="zoomin"/>
>>> </$set>
>>> </$button>
>>>
>>> It always goes to the last spot in the history list. Is that not what 
>>> you expect/want ?
>>>
>>> -- Mark
>>>
>>> On Sunday, July 29, 2018 at 1:28:34 PM UTC-7, Mohammad wrote:
>>>>
>>>> Mark!
>>>>  I use a macro! I click on a button to go full screen and zoomin view! 
>>>> something like this
>>>> <$action-sendmessage $message="tm-full-screen"/>
>>>>
>>>> <$action-setfield $tiddler="$:/view" text="zoomin"/>
>>>>
>>>>
>>>>
>>>> In the macro I store, the current story view in a state tiddler
>>>> When I switch back, I read the state tiddler and overwrite the  $:/view 
>>>> something like this
>>>>
>>>>   <$action-sendmessage $message="tm-full-screen"/>
>>>>   <$set name="previous-story-view" 
>>>> value={{$:/state/tiddlyshow/presentation!!story-view}} >
>>>>     <$action-setfield $tiddler="$:/view" text=<<previous-story-view>> />
>>>>   </$set>
>>>>
>>>>
>>>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d88c8aae-edbd-4387-96f6-2550ff054137%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to