[TW5] global keyboard shortcuts (experimental implementation)

259 views
Skip to first unread message

Knut Franke

unread,
Mar 27, 2016, 7:33:56 PM3/27/16
to TiddlyWiki
Hi everyone,

one thing I've really been missing in TiddlyWiki are keyboard shortcuts (currently there are just two, "ctrl+enter" for confirming and "esc" for aborting an edit operation). I've been working on implementing extended support, and would like to invite you to test and provide feedback. You can test it here:

http://nome.github.io/TiddlyPlugins/

Predefined global shortcuts:

ctrl+plus:tm-new-tiddler ctrl+shift+F:tm-full-screen ctrl+down:tm-navigate-next ctrl+up:tm-navigate-prev f2:tm-edit-tiddler

Edit $:/config/GlobalShortcuts to change these or add new ones.

Currently, the implementation is packaged as a plugin (so you can try it in your own wiki); however, to do this we have to override at least the page template, so I decided to override the <$keyboard> and <$navigator> widget implementations as well instead of adding similar widgets with new names (both are backwards-compatible, I just added some features). This means the plugin may very well break future TiddlyWiki updates. I think this functionality should get included in the core, once it's tested and stable.

One of the kinks that need to get ironed out is that these shortcuts interfere with the tiddler editor, so that defining "up"/"down" as global shortcuts (for instance) makes it impossible to properly edit tiddlers.

Some feedback regarding a sensible set of default bindings would be welcome.

Cheers,
Knut

wimm

unread,
Mar 28, 2016, 2:29:05 AM3/28/16
to TiddlyWiki
Knuth,

This is a useful feature, thanks!
 
ctrl+plus:tm-new-tiddler
I understand by plus you mean the plus on the numeric keypad, because the browser zooms into the webpage with the standard ctrl+plus.

KR 
Wim

Jon

unread,
Mar 28, 2016, 3:25:17 AM3/28/16
to TiddlyWiki
Hi Knut,

I think you can navigate back and forward with the browser back/forward button or the Alt and Left/Right arrows.

Have you seen http://braintest.tiddlyspot.com/#%24%3A%2Fplugins%2Fdanielo%2FkeyboardSnippets?


Regards

Knut Franke

unread,
Mar 29, 2016, 5:03:00 PM3/29/16
to TiddlyWiki
On Monday, March 28, 2016 at 8:29:05 AM UTC+2, wimm wrote:
ctrl+plus:tm-new-tiddler
I understand by plus you mean the plus on the numeric keypad, because the browser zooms into the webpage with the standard ctrl+plus.

Right. I've changed the name to "kpplus" to clarify that it's the one on the numeric keypad.

On Monday, March 28, 2016 at 9:25:17 AM UTC+2, Jon wrote:
I think you can navigate back and forward with the browser back/forward button or the Alt and Left/Right arrows.

Yes (if you enable this in the TiddlyWiki config), but it's a different "dimension" of navigation than tm-navigate-prev/next. The browser navigates through history (i.e. the tiddlers you've actually visited), whereas tm-navigate-prev/next navigate through the open tiddlers (in the order in which the appear in the river). The idea is that you open a predefined list of tiddlers (as in the "default tiddlers" displayed on startup) and then navigate between them in a pre-defined order, for example for a presentation.


Thanks for the hint! This should complement nicely with the global shortcuts I've added. Although it will probably be obsoleted by the keyboard shortcuts in the new rich text editor Jeremy is working on (http://rich-text-editor.tiddlyspot.com/).


Cheers,
Knut
Reply all
Reply to author
Forward
0 new messages