Hi all,

If, like me, you use a lot of formatting and repetitive text in
editing TWs, you might appreciate some keyboard shortcuts that work in
ordinary plain-text TW markup.

Using a library from OpenJS [1] as its basis, I put together
ShortcutPlugin [2] (the functions) and ShortcutKeysPlugin (the key
definitions) [3] that together allow about any key to be defined to
either: (a) insert pairs of TW formatters at the cursor or around
selected text or (b) insert a single text item (such as a line break,
bullet or special character).

http://twkeys.tiddlyspace.com

While it's true (as has been discussed here before) that this allows
hijacking key combinations used by the browser (if you define Ctrl+B
for bold text, it no longer opens your bookmarks), this plugin makes
the defined keys ONLY active in a textarea (e.g., only in the text
field of a tiddler open for editing), so normal browser functions
return when you're done editing.

Caveats: (a) Works in Firefox, does NOT currently work in IE, where
the browser seems to grab the keys ahead of the script (friends don't
let friends use IE anyway!). Not tested in Chrome or Safari. (b) Setup
is not super user-friendly: to define keys, you have to edit the code
of the ShortcutKeysPlugin.

Jon

[1] http://www.openjs.com/scripts/events/keyboard_shortcuts
[2] http://twkeys.tiddlyspace.com#ShortcutPlugin
[3] http://twkeys.tiddlyspace.com#ShortcutKeysPlugin

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to