[Question] Keyboard shortcut to get focus on the textfield.

201 views
Skip to first unread message

Boris Kalinin

unread,
May 14, 2020, 5:28:56 AM5/14/20
to TiddlyWiki
I want to use my mouse as little as possible. But when you create a new tiddler and your focus is by default on the title field then if you press [Tab] button you will first set focus on the tag field, then on the control buttons which are plenty. I want to create a shortcut that will send my focus directly on the textfield. How should I proceed?

I've created "$:/config/ShortcutInfo/activate-textfield" tiddler, set the shortcut to "ctrl-2". Now should I create another tiddler with <$keyboard> in the textfield? What action should I choose - action-navigate or tm-focus-selector?

Thanks in advance!
Sincerely, Boris.

BurningTreeC

unread,
May 14, 2020, 6:32:41 AM5/14/20
to TiddlyWiki
Hi Boris,

there's a hidden setting $:/config/EditTabIndex

you can set the text of that tiddler to 1, which allows you to tab from the title to the tags field and from the tags field directly to the text field

all the best,
BTC

Edgaras

unread,
May 14, 2020, 7:23:35 AM5/14/20
to TiddlyWiki
The problem I have, when i tab away from tags field, the tags dropdown stays active (open)....

Joshua Fontany

unread,
May 14, 2020, 7:50:26 PM5/14/20
to TiddlyWiki
Aaaah, I'm not the only one who noticed this (tabbing into the field opens a popup, tabbing out of it leaves the popup open).

Peter Buyze

unread,
May 14, 2020, 11:34:52 PM5/14/20
to TiddlyWiki forum
I am sorry but that setting does not exist in my file.



14 May 2020, 13:32 by hypnotize...@gmail.com:
--
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.

Sylvain Naudin

unread,
May 15, 2020, 2:07:42 AM5/15/20
to TiddlyWiki


Le vendredi 15 mai 2020 05:34:52 UTC+2, Peter Buyze a écrit :
I am sorry but that setting does not exist in my file.


Yes it's normal since it's a hidden setting ;)

But like Edgaras and Joshua, tags dropdown is annoying.

Lately I've put the focus on the text content directly now that it's possible to do so, and I'll take care of the title later.

Peter Buyze

unread,
May 15, 2020, 3:37:02 AM5/15/20
to TiddlyWiki forum
Merci Sylvain.


15 May 2020, 09:07 by sil...@gmail.com:
--
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.

Jon

unread,
May 15, 2020, 9:51:08 AM5/15/20
to TiddlyWiki
Hi Sylvain,

Where is the actual file to edit?

If I do an advanced search for it, I get a list of plugins in $:/core but the file isn't on the list.

Regards
Jon



On Friday, 15 May 2020 08:37:02 UTC+1, Peter Buyze wrote:
Merci Sylvain.


15 May 2020, 09:07 by sil...@gmail.com:


Le vendredi 15 mai 2020 05:34:52 UTC+2, Peter Buyze a écrit :
I am sorry but that setting does not exist in my file.


Yes it's normal since it's a hidden setting ;)

But like Edgaras and Joshua, tags dropdown is annoying.

Lately I've put the focus on the text content directly now that it's possible to do so, and I'll take care of the title later.


--
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 tiddl...@googlegroups.com.

Sylvain Naudin

unread,
May 15, 2020, 4:34:08 PM5/15/20
to TiddlyWiki


Le vendredi 15 mai 2020 15:51:08 UTC+2, Jon a écrit :
Hi Sylvain,

Where is the actual file to edit?

If I do an advanced search for it, I get a list of plugins in $:/core but the file isn't on the list.

Regards
Jon


The file doesn't exit, just create it :)
See in tiddlywiki.com, this is a missing link.

Jon

unread,
May 15, 2020, 5:14:30 PM5/15/20
to TiddlyWiki
I see, thanks.

A Gloom

unread,
May 19, 2020, 2:29:07 PM5/19/20
to TiddlyWiki
With most hidden settings, the tiddler for the setting is often not present because its not needed till the setting is made.

You will have to create a tiddler named $:/config/EditTabIndex with "1" in its text field

$:/config/EditTabIndex is used by the following template tiddlers:

 $:/core/ui/EditTemplate/body
$:/core/ui/EditTemplate/body/editor
$:/core/ui/EditTemplate/fields
$:/core/ui/EditTemplate/tags
$:/core/ui/EditTemplate/title
$:/core/ui/EditTemplate/type

references in the following manner:

<$edit-text field="_canonical_uri" class="tc-edit-fields" tabindex={{$:/config/EditTabIndex}}></$edit-text>

so theoretically, the tabindex parameter could be cleared or set to a different config tiddler perhaps for skipping/omittng the $:/core/ui/EditTemplate/tags tiddler?
Reply all
Reply to author
Forward
0 new messages