keyboard shortcuts

11 views
Skip to first unread message

db

unread,
May 18, 2008, 2:55:55 PM5/18/08
to TiddlyWiki
hello everybody and especially those who are coding,

there is one thing i would really like to see in a tiddlywiki, which
is a few keyboard shortcuts that help in the editing and writing of
tiddlers – let's say: to make the using of the already-intuitive
tiddlywiki-markup even more comfortable.

for example, something like ctrl+i, ctrl+b for italics and boldface in
edit-mode would make the working on documents a lot more enjoyable.

unfortunately i am not able to write the code myself and therefore am
kindly asking if somebody who is able to and also interested to
probably have a look at this.

it could work like this: on pressing ctrl+i, the two double-slashes
are inserted and the cursor put in the middle of them.

is there interest on your side?

thanks for your patience and now to something else...

ps:
thinking one step further crtl+1, crtl+2 could make headlines, too.
but thats just one more idea.

Eric Shulman

unread,
May 18, 2008, 4:49:57 PM5/18/08
to TiddlyWiki
> there is one thing i would really like to see in a tiddlywiki, which
> is a few keyboard shortcuts that help in the editing and writing of
> tiddlers – let's say: to make the using of the already-intuitive
> tiddlywiki-markup even more comfortable.
>
> for example, something like ctrl+i, ctrl+b for italics and boldface in
> edit-mode would make the working on documents a lot more enjoyable.

The 'editor' used by TiddlyWiki is simply a browser-standard
"textarea" control. While it *is* possible to add extended keystroke
handling to this textarea for ctrl+letter combinations (such as the
ctrl-F (search) and ctrl-G (search again) extensions I've written in
http://www.TiddlyTools.com/#TextAreaPlugin), nearly all the ctrl
+letter combinations are already in use by the browser itself, so re-
assigning them for special TiddlyWiki handling is generally a bad
idea.

As an alternative, you might want to try
http://www.TiddlyTools.com/#QuickEditPackage
which lets you add a 'quickedit' formatting toolbar to your document's
EditTemplate. This toolbar provides a set of buttons for quickly
adding various bits of TiddlyWiki syntax into the textarea, either
inserting new content or modifying whatever text is currently
selected.

The QuickEditToolbar buttons for bold, italics, underline, and
strikethrough are also assigned "access keys": B, I, U, and S,
respectively, so that they can be pressed by using your browsers
access key combination (for Firefox, access keys are invoked via ALT
+SHIFT+letter... other browsers may vary).

Thus, with QuickEdit toolbar displayed while editing, you can select
content in the textarea control and then press ALT+SHIFT+I to surround
it with the //...// wiki syntax for italics, or ALT+SHIFT+B to
surround it with ''...'' for bold, etc.

enjoy,
-e

db

unread,
May 19, 2008, 6:51:49 AM5/19/08
to TiddlyWiki
> Thus, with QuickEdit toolbar displayed while editing, you can select
> content in the textarea control and then press ALT+SHIFT+I to surround
> it with the //...// wiki syntax for italics, or ALT+SHIFT+B to
> surround it with ''...'' for bold, etc.
>
> enjoy,
> -e

Thanks eric,

this works!

db
Reply all
Reply to author
Forward
0 new messages