[KeeBoord] - GitHub

253 views
Skip to first unread message

BurningTreeC

unread,
Aug 19, 2018, 8:06:37 AM8/19/18
to TiddlyWiki
Hi there,

I've moved the KeeBoord plugin to a GitHub repository and updated parts to be in line with recent changes in the TiddlyWiki core

the repository is located on https://github.com/BurningTreeC/KeeBoord

the dedicated Plugin Page: https://burningtreec.github.io/KeeBoord


The plugin is a Prerelease version as I'm updating it when there are breaking changes in the prerelease version of the core

New features are:

  • tracking of the last navigated/edited/saved/closed/cancelled tiddler in a state tiddler through a startup module
  • Tags-Dropdown navigation with Down/Up arrow keys
  • automatic focus on the text-editor if the tiddler-preview gets activated / deactivated
  • per-session + per-tiddler saving of the last cursor position / selection in the text editor

All the best, BurningTreeC

Mohammad

unread,
Aug 19, 2018, 8:35:45 AM8/19/18
to TiddlyWiki
Hello BTC,
 Great job! Thank you for sharing!

The tracking features simplify the synchronization of mouse actions and shortcut keys!

Should we wait for a stable release or this one is enough stable to be used in a real application?

Thank you

/Mohammad

BurningTreeC

unread,
Aug 19, 2018, 8:49:37 AM8/19/18
to TiddlyWiki
Hello BTC,
 Great job! Thank you for sharing!


Thanks Mohammad,
 
The tracking features simplify the synchronization of mouse actions and shortcut keys!

Should we wait for a stable release or this one is enough stable to be used in a real application?

Oh, as it is a prerelease, I'm not going to say that it would be stable enough. You can try it out to see if it's stable enough for your needs
The more feedback I get from people trying it, the better :)
 

Thank you

/Mohammad

Mohammad

unread,
Aug 19, 2018, 9:48:01 AM8/19/18
to TiddlyWiki
Thank you again!
Lets start playing with this amazing tool!

/Mohammad

@TiddlyTweeter

unread,
Aug 20, 2018, 3:04:06 AM8/20/18
to TiddlyWiki
Ciao BTC

Looking good!

Tested on Win 7 64bit in FF52 & 60 and latest Chrome on Desktop. Win 10 62bit FF60 on Surface Windows Tablet in touch-screen only mode. 

Small observations about TAB between fields in editor.

1 - If you manually add a new tag the tabbing looses focus IF you press (add). Then you have to manually click in a field to get tabbing back. (You can preserve Tabbing by pressing plain [Enter] rather than the (add) button when adding manually).

2 - If you Tab through all the visible fields and then tab once or more when the cursor is in the last field it appears to lose focus. Actually its there, you can't see it. It will come back if you repeatedly press [Tab+Shift] so if for instance you tabbed three times beyond the last field tabbing [Tab+Shift] four times will bring it back to last field.

3 - IF you happened to have two Tiddlers open for editing it jumps to the Title field of the next open down the stream.

I don't think any of this is hugely important. But I did wonder if Tabbing could return to the Title field once you tab from the last field of a tiddler in-edit?

I'll report back if I see anything else.

Best wishes
Josiah

BurningTreeC

unread,
Aug 20, 2018, 3:31:18 AM8/20/18
to TiddlyWiki
Ciao BTC

Looking good!

Tested on Win 7 64bit in FF52 & 60 and latest Chrome on Desktop. Win 10 62bit FF60 on Surface Windows Tablet in touch-screen only mode. 

Small observations about TAB between fields in editor.

1 - If you manually add a new tag the tabbing looses focus IF you press (add). Then you have to manually click in a field to get tabbing back. (You can preserve Tabbing by pressing plain [Enter] rather than the (add) button when adding manually).

Yes, I've made the Editor auto-focus if the editor-preview changes, but not for the tags and fields inputs because of the already existing shortcuts that keep focus in the input fields. I think it's ok like that. But I wanted to add <Enter> to add the field but forgot about it 

2 - If you Tab through all the visible fields and then tab once or more when the cursor is in the last field it appears to lose focus. Actually its there, you can't see it. It will come back if you repeatedly press [Tab+Shift] so if for instance you tabbed three times beyond the last field tabbing [Tab+Shift] four times will bring it back to last field.

For tabbing it uses the standard behaviour of the browser. Elements on the page can have a tab-index. tabbing starts with the lowest tab-index (default is 0). On the standard tiddlywiki all elements have the default value I think, that's why tabbing goes through all of those inputs, buttons etc.

I've set the inputs 1 level higher than the rest, which causes the browser to tab through all 1-level elements once one of them is focused and after the last one it goes to level 2 if it's there or falls back to 0
 

3 - IF you happened to have two Tiddlers open for editing it jumps to the Title field of the next open down the stream.

Yes, I don't know yet which is the best behaviour. But there already are shortcuts for focusing the title of the selected tiddler from anywhere. focus-title is ctrl-alt-H, tags ctrl-alt-T, editor ctrl-alt-E, type ctrl-alt-Y, fields name ctrl-alt-F, fields value ctrl-alt-V (If I remember them correctly - these are difficult shortcuts but they can all be changed)

Now in the last input field of a tiddler, we could add a shortcut that puts the focus back to the title. I think this should be a setting that can be enabled/disabled

I don't think any of this is hugely important. But I did wonder if Tabbing could return to the Title field once you tab from the last field of a tiddler in-edit?

I'll report back if I see anything else.

Thanks Josiah! 

Best wishes
Josiah

@TiddlyTweeter

unread,
Aug 20, 2018, 4:49:07 AM8/20/18
to TiddlyWiki
Ciao BTC

focus-title is ctrl-alt-H, tags ctrl-alt-T, editor ctrl-alt-E, type ctrl-alt-Y, fields name ctrl-alt-F, fields value ctrl-alt-V (If I remember them correctly - these are difficult shortcuts but they can all be changed)
One of the things that I think relevant is HOW to choose appropriate shortcuts. Its NOT your problem. But its definitely in play. You have OS level (and differences between them); System hacks level like AutoHotkey (pure bespoke); Browser level (and differences between them) and then the Page level. This is why I'd never want to be a programmer: too baroque. :-) I lost enough hair already.

But I was wondering if there is a site anywhere that sheds light on strategies for setting your keys so they work well across the conditions of working without conflicts?

Just a comment.
Josiah, x

@TiddlyTweeter

unread,
Aug 20, 2018, 6:16:32 AM8/20/18
to TiddlyWiki
Ciao BTC

This is just a question about "ActionPopupWidget" ... is it possible to have more than one Popup assigned to keys? I am a bit unclear about this. I could not figure out if you could do that.

Josiah

BurningTreeC

unread,
Aug 20, 2018, 6:57:18 AM8/20/18
to TiddlyWiki
Ciao BTC

This is just a question about "ActionPopupWidget" ... is it possible to have more than one Popup assigned to keys? I am a bit unclear about this. I could not figure out if you could do that.

Josiah

You can make as many different keyboard shortcuts for as many different popups as you want. You just need to use a different state tiddler for each of them

BTC 

@TiddlyTweeter

unread,
Aug 20, 2018, 7:09:22 AM8/20/18
to TiddlyWiki
Thanks BTC. Simple but helpful.

That simple sentence that you can have as many popups as you need & about state tiddlers is maybe worth including in the docs?

J.

@TiddlyTweeter

unread,
Aug 21, 2018, 10:02:18 AM8/21/18
to tiddl...@googlegroups.com
Ciao BTC,

Comments on alt-S behaviour ... on both Chrome & FF on Windows 7 desktop ...

1 - Click "alt-S" and the sidebar collapses as you'd expect. BUT the indicator remains ">>" -- it does not change to "<<" (i'm assuming collapsing the sidebar is the intention, though I see its referred to as a "popup"?)

2 -
Start again. With a few tiddlers in the stream collapse sidebar using "alt-S", then click the "X" on any tiddler to close it. The sidebar comes back.

UPDATE...

3 - I was unclear if "alt-S" is meant to be a Toggle--i.e. that toggles between collapsed and expanded? Maybe I'm not understanding the intent.

Best wishes
Josiah

@TiddlyTweeter

unread,
Aug 21, 2018, 10:18:56 AM8/21/18
to TiddlyWiki
email readers should note I updated my last post with a 3rd point ...

BurningTreeC

unread,
Aug 21, 2018, 10:19:21 AM8/21/18
to TiddlyWiki
Hi Josiah, yes, that's confusing. Not every shortcut on that page is part of the KeeBoord plugin. What you've figured out is a sidebar-experiment. I made the sidebar popup active when the screen is narrow and the standard sidebar when the screen is wider than the sidebar-breakpoint. That causes the popup not to appear when the screen is wide and the sidebar to hide when activating the popup with alt-S. when clicking somewhere, the sidebar shows again. But try it with a narrow screen, where the sidebar would normally be on top 

@TiddlyTweeter

unread,
Aug 21, 2018, 10:49:04 AM8/21/18
to TiddlyWiki
BTC: What you've figured out is a sidebar-experiment.

One of the things I been meaning to say for a long time is that I really appreciate your style of working. Its unusually public. Your projects I can see are complex involving quite fundamental look and code design issues. I have learned a huge amount as you go through your process of "approximating better the aim" -- and taking feedback during the process, not just tweaking at the end. Its unusual. I think it leads to better results in the end.

Best wishes
Josiah

BurningTreeC

unread,
Aug 21, 2018, 1:19:41 PM8/21/18
to TiddlyWiki
BTC: What you've figured out is a sidebar-experiment.

One of the things I been meaning to say for a long time is that I really appreciate your style of working. Its unusually public. Your projects I can see are complex involving quite fundamental look and code design issues. I have learned a huge amount as you go through your process of "approximating better the aim" -- and taking feedback during the process, not just tweaking at the end. Its unusual. I think it leads to better results in the end.

That's a big compliment, thank you!
I like doing it that way, it triggers feedback and criticism which is very helpful in various ways. Also I thought it may help others at some point. I do learn a lot from this community and giving something back feels good 8-)

Simon

Mohammad

unread,
Sep 5, 2018, 2:27:18 AM9/5/18
to TiddlyWiki
Hello BTC,

Keyboard Shortcuts can be enabled for certain Tiddlers only - automatic activation / deactivation when selecting such a Tiddler / leaving selection
 could you add some examples to see how this works?

Mohammad

BurningTreeC

unread,
Sep 5, 2018, 6:05:54 AM9/5/18
to TiddlyWiki
Hello BTC,

Keyboard Shortcuts can be enabled for certain Tiddlers only - automatic activation / deactivation when selecting such a Tiddler / leaving selection
 could you add some examples to see how this works?

Mohammad

Hi Mohammad, at the moment the mechanism is a bit complicated and it's likely that I will change it to be easier and more universal to set up.

But right now it works like this:

create a tiddler $:/config/TiddlerShortcuts/ with the title of the tiddler for whom you want to enable/disable certain shortcuts as SUFFIX. Like: $:/config/TiddlerShortcuts/my-test-tiddler

create the field "activate" and put the titles of the keyboard shortcuts that should be activated in it as a list (the keyboard shortcuts are the tiddlers with the tag $:/tags/KeyboardShortcut)
create the field "deactivate" and do like for the field "activate"

hope it works,
BTC

Mohammad

unread,
Sep 5, 2018, 8:34:09 AM9/5/18
to tiddl...@googlegroups.com
Thanks BTC!

I hope this great plugin be maintained and updated in a regular basis!
It is a unique plugin.

Thank you

David Gifford

unread,
Sep 5, 2018, 8:53:13 AM9/5/18
to TiddlyWiki

BurningTreeC

unread,
Sep 5, 2018, 11:00:44 AM9/5/18
to TiddlyWiki
Thank you Mohammad, Thanks David!

have a nice day, BTC
Reply all
Reply to author
Forward
0 new messages