Hi BTC, I have still one problem I could not figure out! To synchronize the navigation of shortcut keys with button (here links with mouse clicks), I tried to use the state tiddler in the tiddler handles the navigation. Here are the next previous button (links)
<div class="eqi-container"> <div> <$list filter="[all[current]previous[$:/StoryList]]"> <$link to={{!!title}} tooltip="previous: {{!!title}}"> <$action-setfield $tiddler="$:/state/presentation-tiddler" text={{!!title}}/> <span>{{$:/.mr/tiddlyshow/circle-left}}</span> </$link> </$list> </div> <div> <span class="pagenumber">{{!!page}}</span> </div> <div> <$list filter="[all[current]next[$:/StoryList]]"> <$link to={{!!title}} tooltip="next: {{!!title}}"> <$action-setfield $tiddler="$:/state/presentation-tiddler" text={{!!title}}/> <span>{{$:/.mr/tiddlyshow/circle-right}}</span> </$link> </$list> </div> </div> But it seems the state tiddler ($:/state/presentation-tiddler) is not update. So, the shortcutkeys (alt+Right and alt+Left) actions are not the same as link clicks. I mean both of them works but when navigate from same tiddler, the result is different! One more question: If I start navigation from middle of story river, the button works fine because they navigate from the current tiddler, but I dont know how to tell this to Shortcutkeys tiddler (i.e. next-slide, previous-slide). Thank you Mohammad On Wednesday, June 6, 2018 at 1:37:23 AM UTC+4:30, BurningTreeC wrote > > @BTC >> Your solution works great! >> I have assigned Enter, Space, PageDown and Right-arror for next tiddler >> (slide) and Left-arrow, PageUp for previous. >> > > Awesome > >> >> There is some adjustment remained. For example, if I click on the >> next-slide button or previous-button, the state tiddler is not notified. >> Also after slideshow, the next time state tiddler still has the last >> slide title and it should rewind. >> > > Yes, you'll need the same solution within your next and previous buttons > you could add this to the button that starts and ends a presentation: > <$action-deletetiddler $tiddler="$:/state/presentation-tiddler"/> > > and modify my code from above: > > <$list filter="[[$:/state/presentation-tiddler]is[missing]]"> > <$action-setfield $tiddler="$:/state/presentation-tiddler" text={{{ > [list[$:/StoryList]nth[1]] }}}/> > </$list> > <$list filter="[list[$:/StoryList]count[]]" variable="storyCount"> > <$list filter="[list[$:/StoryList]nth<storyCount>!title{$:/state/ > presentation-tiddler}]"> > <$list filter="[{$:/state/presentation-tiddler}next[$:/StoryList]]" > variable="nextTiddler"> > <$action-setfield $tiddler="$:/state/presentation-tiddler" text=< > <nextTiddler>>/> > <$action-navigate $to=<<nextTiddler>>/> > </$list> > </$list> > </$list> > > With this it sets the state tiddler to the first tiddler if it's missing - > and it should be missing when you add the above line to the presentation > launcher > -- 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/14b532f7-a06f-4623-96e0-e364b20e39c9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.