Keyboard shortcuts for Tagging and moving from Tag to Body text?

335 views
Skip to first unread message

Marcus Baw

unread,
Jul 20, 2016, 5:39:57 AM7/20/16
to TiddlyWiki
Hi, I'm a recent returner to TiddlyWiki having used it for an organisational Wiki (in a place where a 'server' based Wiki would have been impossible due to poor IT management) some years ago.

May I first say how impressed I am with the New TiddlyWiki, which has managed to keep everything I thought was awesome about TiddlyWiki, and add even more flexibility and features, as well as a really nice look and feel.

I use keyboard shortcuts extensively and don't like to have to transition from keyboard to mouse when I don't need to. Mostly TiddlyWiki supports keyboarding, but one area I'm struggling with is adding/selecting tags (either via free text new tags, or from the tag menu) and also moving from the tag input to the body text input with keyboard shortcuts.

I couldn't find anything in the Keyboard documentation or in my Settings Tiddler, and Tab (the seemingly most 'intuitive' key to move from input box to input box down the page) doesn't work for me.

Any suggestions?

Marcus

Marcus Baw

unread,
Jul 26, 2016, 4:16:25 AM7/26/16
to tiddl...@googlegroups.com
Just re-asking the question: Is there any way to select tags using the keyboard? I've tried various things and don't seem to be able to find a way to select them via keyboard.

After typing the title of the tiddler, I can `tab` into the next input (to enter a tag name). If I start typing here I can narrow the list of tags, but I can't select from the list using `up-arrow / down-arrow` or any other key combination I can find. Creating a new tag is also not possible via keyboard.

Is there a way to implement this, either via plugin or a tweak? I'm not great at JavaScript but happy to have a go.

M

Eric Shulman

unread,
Jul 26, 2016, 5:16:53 AM7/26/16
to TiddlyWiki
On Tuesday, July 26, 2016 at 1:16:25 AM UTC-7, Marcus Baw wrote:
Just re-asking the question: Is there any way to select tags using the keyboard? I've tried various things and don't seem to be able to find a way to select them via keyboard.

After typing the title of the tiddler, I can `tab` into the next input (to enter a tag name). If I start typing here I can narrow the list of tags, but I can't select from the list using `up-arrow / down-arrow` or any other key combination I can find. Creating a new tag is also not possible via keyboard.

The steps for entering or selecting a tag using only the keyboard are not obvious, and is regrettably awkward.

To create a new tag:

1) Move the focus to the tag input field
2) Enter the desired tag text
3) Press TAB 2 times... the 1st tab moves to the downarrow button, the 2nd tab moves to the "add" button
4) Press ENTER to push the button... the tag is added to the tiddler.
5) To return to the tag input field, use SHIFT-TAB 2 times.

To select an existing tag:

1) Move the focus to the tag input field... the list of tags (if any) appears.
2) Press TAB 3 times... the 1st tab moves to the downarrow button, the 2nd tab moves to the "add" button, the 3rd tab moves to the top of the list of tags.)
3) Continue to press TAB to move down the list until the desired tag is highlighted.
4) Press ENTER to add the tag.
5) To return to the tag input field, use SHIFT-TAB 3 times.

Of course, this process would be MUCH smoother if you could use ENTER directly from the tag input field to add the tag, and DOWN/UP ARROWS to move focus from the input field to the list, as well as moving through the list.

For the first part, perhaps the core <$edit-text> widget handling could be extended so that the *contents* of the widget (which are currently ignored) could be used to specify *action-widgets* that would be triggered when the ENTER key is pressed.  In this particular use-case, the action would be the same as when the "add" button is pressed (i.e., the tag is added to the tiddler).  As an extra bonus, this functionality (triggering actions when ENTER is pressed in an input field) might also be useful for other edit fields, not just the tab input.

For the second part (DOWN/UP ARROWS), it might be possible to extend the tag 'pill' keyboard event handling so that DOWN/UP arrow is treated as if TAB/SHIFT-TAB was pressed, so that the existing navigation handling would be triggered (i.e., moving the focus/selection between items in the tab list).

Jeremy: what do you think?  Is this do-able?

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals

Mark S.

unread,
Jul 26, 2016, 9:21:16 AM7/26/16
to TiddlyWiki
There's also the problem of navigating from the tags down into the text. If you have hundreds of tags, you have to tab hundreds of times. And, once you're in the text box, the tab list is still open, blocking your view!

Thanks!
Mark

Marcus Baw

unread,
Jul 26, 2016, 9:31:07 AM7/26/16
to tiddl...@googlegroups.com
@eric - thanks! - that is very helpful. Perhaps not the most intuitive shortcuts, but they get the job done and will definitely save me time.
M

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/pExEbkc6e6c/unsubscribe.
To unsubscribe from this group and all its topics, 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/9a2bec9d-7c4a-493a-846a-035228424cb6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rustem

unread,
Aug 4, 2016, 7:28:32 PM8/4/16
to TiddlyWiki
This will save you time and mouse mileage when entering new tiddlers (or adding tags to tiddlers without many pre-existing tags):
https://groups.google.com/d/msg/tiddlywiki/eB-t2kK620o/_fYlsfsKJQAJ

Captain Packers

unread,
Feb 18, 2017, 9:27:01 AM2/18/17
to TiddlyWiki
I would be in favor of an improved way to manage tagging mouse-free. I like the idea of adding up, down, and enter keys functionality. Even better would be the ability to enter multiple tags at the same time by comma or space separation.

Thanks

Reply all
Reply to author
Forward
0 new messages