[tutorial] Notes on the keyboard-driven-input macro

136 views
Skip to first unread message

clutterstack

unread,
Feb 2, 2021, 3:21:09 PM2/2/21
to TiddlyWiki
Hi all,

I was interested in building a tool to select a tiddler from a dropdown, or to create a new one using a text input element if desired (much like the tag picker). I quickly discovered that this is quite involved, but that a lot of the work is encapsulated in the keyboard-driven-input macro.

I didn't find it trivial to wrap my head around it, so I tried to make the simplest functioning thing I could make with this macro, and wrote up the process on my workshop wiki here: Exploring the keyboard-driven-input macro

Comments welcome; otherwise I hope this helps someone down the road.

Best,
Chris

TW Tones

unread,
Feb 2, 2021, 8:16:19 PM2/2/21
to TiddlyWiki
Chris,

Thanks for sharing this. It is fairly intensive to get fluent with this feature and your example.

Thinking about what people may want perhaps showing how one can simultaneously see a drop down list of search results  and other common requirements may be helpful. For example the tags you refer to come with the dropdown to click select. I imagine a separate macro could make use of the same search filters as used on your example to keep it modular.

I suppose most peoples needs are based on a number of features from keyboard navigation, dropdown list, mouse click etc... all combined.

But thanks for this;

Tones

coda coder

unread,
Feb 3, 2021, 8:51:49 AM2/3/21
to TiddlyWiki
Thanks Chris.

It just so happened that yesterday I "fixed" an extension I'd made to the TW Search field (which no longer worked as expected in 23) and discovered much the same. For a given grouping of tiddlers, I want to search their subtitle fields rather than title/text so I soon bumped into userInput, first-search-filter et al... (Got it working by creating another tiddler tagged $:/tags/SearchResults and a search-filter field containing a filter for subtitle)

But your expose' goes much further. Great documentation and Good job!

I hope that wiki and tiddler stay around - I'm linking to it! :)

clutterstack

unread,
Feb 3, 2021, 10:32:17 AM2/3/21
to TiddlyWiki
Thanks for looking and kind comments, Tones and coda.

Tones, the reason I didn't include the dropdown stuff was that I haven't got that far yet! I agree that this is (probably, unless I'm being unimaginative) what most use-cases would call for.

Coda, I see bits of the search repurposed in other macros as well, but haven't followed all the threads. There's an interesting exploration to be done there, which I hope to have time to do at some point.

Best,
Chris

Jeremy Ruston

unread,
Feb 3, 2021, 12:17:26 PM2/3/21
to tiddl...@googlegroups.com
Hi Chris

This is great, I think it would be helpful to add it to tiddlywiki.com (perhaps without the sliders for consistency). Would you be able to prepare a PR?

Many thanks,

Jeremy


On 2 Feb 2021, at 20:21, clutterstack <bee...@gmail.com> wrote:


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2cb1d2a0-3ae6-4643-ac46-925681a61261n%40googlegroups.com.

clutterstack

unread,
Feb 3, 2021, 6:00:36 PM2/3/21
to TiddlyWiki
Hi Jeremy,

Thanks for the encouragement. I'll have a go at an appropriate version for a PR.

Best,
Chris
Reply all
Reply to author
Forward
0 new messages