Switch between different Story view and the Tiddler under focus

33 views
Skip to first unread message

Mohammad

unread,
Jun 14, 2019, 2:26:19 AM6/14/19
to tiddl...@googlegroups.com
Assume you are in Classic Story view
  • Navigate among tiddlers by clicking on links, sidebar TOC and like that
  • Then Switch to Zoomin story view, the tiddler under focus is the same and you enjoy the new story view
  • Navigate and continue your surfing
  • Now switch back Classic to story view
  • You will have some different tiddler under focus, means you will confuse!! For example You left Zoomin story view with Tiddler-A under focus, when you switch to Classic story view you get Tiddler-B on the screen!

Possible mechanism
 It seems TW when switch back to Classic story view loose its focus and start from the first item (tiddler) in $:/StoryList

I tried to use a temporary solution like below
\define Update_StoryList()
  <$set name="v1" tiddler="$:/HistoryList" field="current-tiddler">
<$action-navigate $to=<<v1>> $scroll="yes"/>
  </$set>
\end

It does not work always and it needs a button to do it manually!


Is there any better solution?


--Mohammad



This has been previously discussed with no final solution. Look here: https://groups.google.com/d/msg/tiddlywiki/jKjAptsfs0E/u4OeMZ5_AQAJ

PMario

unread,
Jun 14, 2019, 3:59:19 AM6/14/19
to TiddlyWiki
Hi Mohamad,

There is, but IMO it would need a little bit of work in the core storyview.js modules. ... The storyview eg: classic.js controls mainly the animation process, that's assigned to the view. ... IMO those modules would need a "onActivation" function, that is called if the view mode is activated. ... and or an "onDeactivated" for a cleanup.

Those functions could reliably do what is needed to keep the right tiddler in focus.

-have fun!
mario

Mohammad

unread,
Jun 14, 2019, 6:04:19 AM6/14/19
to TiddlyWiki
Hi Mario,
 I will report this as an issue on GitHub!
Hope Jeremy or you or other developer can create a PR to solve the issue!
I am not good at JS to create the PR and give the solution myself.

Best regards
Mohammad

Mohammad

unread,
Jun 14, 2019, 7:46:23 AM6/14/19
to TiddlyWiki


On Friday, June 14, 2019 at 12:29:19 PM UTC+4:30, PMario wrote:
Reply all
Reply to author
Forward
0 new messages