Switch between zoomin and classic story view and keep the same tiddler in focus

27 views
Skip to first unread message

Mohammad

unread,
Jun 18, 2019, 2:52:24 PM6/18/19
to tiddl...@googlegroups.com
I tried to implement a small script to switch between two story view, the zoomin and classic and keep open the same tiddler
in focus in both view.

The example is available at: http://hirad.tiddlyspot.com/
The code is in Test tiddler and can be seen in the sidebar.

as you see below, when the story view switched to classic, a macro  lastseen is called in that
the widget action-navigator is called to open and scroll the tiddler last seen (was in focused in zoomin view).

Unfortunately the lastseen does not work! What other solution you propose?

\define lastSeen()
<$action-navigate to={{$:/HistoryList!!current-tiddler}}  $scroll="yes" />
\end

<$reveal type="nomatch" state="$:/state/SampleReveal1" text="classic">
<$button set="$:/state/SampleReveal1" setTo="classic">Classic
  <$action-setfield $tiddler="$:/view" text="classic"/>
<<lasteSeen>>
</$button>

</$reveal>

<$reveal type="nomatch" state="$:/state/SampleReveal1" text="zoomin">
<$button set="$:/state/SampleReveal1" setTo="zoomin">Zoomin
  <$action-setfield $tiddler="$:/view" text="zoomin"/>
</$button>
</$reveal>




Reply all
Reply to author
Forward
0 new messages