<$navigator story="$:/StoryList" history="$:/HistoryList"><$list filter="[all[current]next[$:/StoryList]]"><$action-navigate $to=<<currentTiddler>> /></$list></$navigator>
<$navigator story="$:/StoryList" history="$:/HistoryList"><$list filter="[all[current]previous[$:/StoryList]]"><$action-navigate $to=<<currentTiddler>> /></$list></$navigator>
<$navigator story="$:/StoryList" history="$:/HistoryList">
<$action-navigate $to="$:/.tiddlytwitter/myTiddler" /></$navigator>
Open Josiah favorite tiddler
Ciao BTC
In your approach, which looks really interesting, is it possible to associate keystrokes combos with opening a single tiddler? Case: I often need to work with one or two configuration Tiddlers and its a lot of strokes to find them (they have "$:/" system names). What would the code needed be?
Hi again BTCIf I use Zoomin storyview is this the correct code for defining shortcuts to navigate forward and backward through Tiddlers in story river
- Goto next tiddler in story view with ctrl-N
tagged with: $:/tags/KeyboardShortcut
<$navigator story="$:/StoryList" history="$:/HistoryList"><$list filter="[all[current]next[$:/StoryList]]"><$action-navigate $to=<<currentTiddler>> /></$list></$navigator>
- Goto previous tiddler in story view with ctrl-P
tagged with: $:/tags/KeyboardShortcut
<$navigator story="$:/StoryList" history="$:/HistoryList"><$list filter="[all[current]previous[$:/StoryList]]"><$action-navigate $to=<<currentTiddler>> /></$list></$navigator>I have required tiddlers for description
- $:/config/ShortcutInfo/next-tiddler text: Next tiddler in story river
- $:/config/ShortcutInfo/previous-tiddler text: Previous tiddler in story river
<$list filter="[list[$:/StoryList]]" .../>
<$list filter="[{$:/state/presentation-tiddler}next[$:/StoryList]]" variable="nextTiddler">
<$list filter="[{$:/state/presentation-tiddler}previous[$:/StoryList]]" variable="previousTiddler">
<$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>
As usual BTC, this is fantastic!!! I really really hope this makes it into the core!!
Side note: I tried to get the focus on search one working but was unable to.
@BTCYour solution works great!I have assigned Enter, Space, PageDown and Right-arror for next tiddler (slide) and Left-arrow, PageUp for previous.
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.
<$action-deletetiddler $tiddler="$:/state/presentation-tiddler"/>
<$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>
BTC wrote: What you can do with a button is also possible with a keyboard shortcut
A small problem.Hi BTCI have set the Right and Left arrow keys as shortcuts for navigating to forward/backward tiddler (slide). When I am in edit mode i.e I opened a tiddler to edit, then for moving currsorI cannot use the arrow keys they navigate to next/previous tiddler instead of moving the cursor back and forth!I think the KeeBoord should detect this situation. For short remedy, I used alt-N and alt-P, but this is a bug.
Okay!I use a combination of keys! and avoid using Space, Backspace, PageUp, PageDown, Arrow keys, Enter, ...I am thinking I can activate them in presentation mode, this should be not difficult. For example thepresentation button can set the key fields and when I finished and press end of show, the fields can be unset!What do you think?
One more question:If I use a DataTiddler as my state tiddler and put all these setting in that tiddler and then using transclusion I can set the values for these actions andother settings! This way I will have less read/write.Do you recommend this way?
<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>
<$button class="tc-btn-invisible" to={{!!title}} set="$:/state/presentation-tiddler" setTo={{!!title}} tooltip="yourtip">
{{$:/.mr/tiddlyshow/circle-right}}
</$button>
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).
{{$:/state/presentation-tiddler}}
<$navigator story="$:/StoryList" history="$:/HistoryList">
<$list filter="[{$:/state/presentation-tiddler}next[$:/StoryList]]">
<$action-sendmessage $message="tm-navigate"/>
</$list>
</$navigator>
Great BTC!This seems to work!If you start your presentation from a different tiddler than the first one, you'll need to set the text of $:/state/presentation-tiddler to that tiddlerHow can I do this? Is it from presentation button? Can I use the currentTiddler then?
I tested your previous solution, it works like a charm!Thank you. Now keyboard shortcut and the button work fine no matter how navigation is done.To start presentation: (demo: http://tiddlyshow.tiddlyspot.com/)
[Note: The above version still has not the shortcutjeys]
- I load a saved presentation from slides tab from sidebar
- I go to browser fullscreen
- I click the small toggle button up-left to set the presentation mode
- I navigate using buttons at the bottom
If you toggle back to author mode, you can click on other tiddlers in open Tab or interwiki links to go to other slide tiddlesr, then you can again click the toggle button to return back to presentation mode!
Here you will have the current tiddler in focus. The state tiddler still has the previous value not the title of tiddler under focus!
@BTCThe above post edited.I have uploaded the Tiddlyshow+KeeBoord with your last solution.
One question:When in Zoomin storyview a tiddler is opened, where its name is stored? I mean is there any state tiddler from thatwe could recognize the name of current tiddler. If so, we can update the content of presentation-tiddler no matter howand from where the current tiddler has been opened!What do you think?
/Mohammad
Hi folks,--
for those who already want to use global keyboard shortcuts within their wikies, I've made a plugin and a little plugin-info-page:
have fun with it,BTC
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/0bea668b-e148-4e33-9d65-c6a9f344a876%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Simon,
again you made a great thing... and again I got a special wish:
Is there a way to turn this into a "somtimes global shortcuts"-plugin which only works if for example a special word is revealed.
It would be usefull for me to have single-key-shortcuts for particular situations... like games and slideshows.
Ahoi,
Jan
Hi BurningTreeC,This is the plugin of my dreams!! Fantastic. Encountered no issues so far but I am inclined to believe that this should be the plugin of the month.Infact, I dare say TW5 should come bundled with this plugin because it augments it so very well.
Hi BTC, this plugin is so amazing! Nothing to report, I'm just thanking you for your work! It's been super reliable for me.