A Transclude Assistant for the Editor Toolbar

89 views
Skip to first unread message

Charlie Veniot

unread,
Feb 7, 2023, 7:44:42 PM2/7/23
to TiddlyWiki

Brian Radspinner

unread,
Feb 7, 2023, 11:01:24 PM2/7/23
to TiddlyWiki
Very nice. 👍

This video, like Dave Gifford's videos, reminds me that I should take time to jot down repeated actions and see if I can make my own EditMode tools. First thing that came to me was a "character picker" popup that could insert `…`, ` `, `ndash;`, and the like without a toolbar button for each character. For the emoji user, same thing.

I really need to force myself to use that Wikitext Link button, it's so much easier to just type part of a title, then search.

Anyway, I grabbed a JSON export of your tiddlers to be ready for future tinkering. Thank you very much, Charlie
On Tuesday, February 7, 2023 at 5:44:42 PM UTC-7 cj.v...@gmail.com wrote:
https://youtu.be/ZmXz4PgFH6U

Charlie Veniot

unread,
Feb 7, 2023, 11:14:19 PM2/7/23
to TiddlyWiki
Hey, thanks Brian.

On my todo list: a "Widgets Assistant".

I could just use the already existing snippets of text thingy, but I'm thinking something a bit more substantive.  Maybe.  So many interests, not enough hours in a day...

Konstantin Samoylov

unread,
Feb 8, 2023, 9:53:31 AM2/8/23
to TiddlyWiki
Thanks a lot! That assistant looks very useful.
If you take feedback :) From usability point of view, I wonder if that makes sense to put a list of templates under the tiddler name in the pop up window. That would make it consistent with the {{x||y}} notation and also helps voiding an issue when there are too many templates and they move the tiddler drop down menu too low.
To avoid the last problem, it might make sense to put the list of templates into a drop down menu as well so the pop up window always have a standard hight regardless of the length of the template name or their quantity. 

But those are minor things. Amazing work, thanks for sharing!

On Wednesday, 8 February 2023 at 00:44:42 UTC Charlie Veniot wrote:
https://youtu.be/ZmXz4PgFH6U

Charlie Veniot

unread,
Feb 8, 2023, 1:00:32 PM2/8/23
to TiddlyWiki
G'day,

Feedback is to me, first and foremost, a gift of someone's time.  Always appreciated.

To spare all the full monty of my thinking: From a usability point of view, it is exactly the way I need it.  But since we don't all operate the same, I'm thinking of documenting the pieces well enough such that folk can move the pieces and customise the pieces.

For those who are too curious to avoid the punishment ...

The Partial Monty

This "assistant" is much like a "Wizard" application/window.  Wizards will do "hand-holding" and walk a user through a logical sequence of steps to get through a process.

My primary need is first and foremost: minimalism (i.e. small/quick/light/agile.)  The least amount of pieces, the least amount of interface.

The number of template tiddlers is small compared to the total number of tiddlers.

The titles of template tiddlers are very short (3-4 characters) compared to titles on my other tiddlers (which are often fairly long, the way I like them). 

When I search for tiddlers in the assistant, the tiddler titles are the buttons that select that tiddler and close the assistant.  (Goal: minimal interface.)

That button should be the last thing I see (look at), and the last action I take.

If I have my list of templates after my list of tiddlers, then the last action I take is above the other actions I would normally take.

For me, the sequence the makes most sense are the tiny little optional actions first, and the meat and potatoes final action last.

That sequence is much more useful to me than a sequence based on order of syntax.  Well, for this kind of small/quick/light/agile tool.

Something like that ...

Scott Sauyet

unread,
Feb 8, 2023, 3:26:24 PM2/8/23
to TiddlyWiki
Charlie Veniot wrote:
https://youtu.be/ZmXz4PgFH6U 

This is great.  I can see myself using this a lot, even though I'm not much of a toolbar user.  (BTW, do you have a keybinding for this?  It wasn't in the demo.)

To make this more easily configurable for others' uses, it might be nice to replace this:

    <$list filter="[tag[$:/C/Templates]] +[sort[]]">

with

    <$list filter={{$:/C/templates/filter}} >

and then add a tiddler:

    title: $:/C/templates/filter
    text: [tag[$:/C/Templates]] +[sort[]]

Then to configure this, users can simply update this tiddler with their own template filter.

Charlie Veniot

unread,
Feb 8, 2023, 3:34:11 PM2/8/23
to TiddlyWiki
Hey, thanks Scott.

I've been chewing on that since last night.

Adding another tiddler to the setup?  Nah.

Picture the assistant having a config button.  That button brings displays a field for you to enter your custom filter.  The value just gets saved in a field in the Transclude Assistant tiddler.

Maybe.  Still chewing...

Charlie Veniot

unread,
Feb 8, 2023, 3:39:28 PM2/8/23
to TiddlyWiki
"brings displays" ???  Saw it just as I clicked "Post message".

"displays" !

Scott Sauyet

unread,
Feb 8, 2023, 3:52:50 PM2/8/23
to TiddlyWiki
Charlie Veniot wrote:

>  Adding another tiddler to the setup?  Nah.

I've been writing my reusable content as either plugins or as JSON arrays of
tiddlers.  So I like to break things down into tiny pieces.  But that's not
essential, as your next suggestion points out.


> Picture the assistant having a config button.  That button brings
> displays a field for you to enter your custom filter.  The value just
> gets saved in a field in the Transclude Assistant tiddler.

That works fine.  I would just like to be able to configure it without reaching
deep into its code.

Again, very nice!

Thanks for sharing it.

  -- Scott

Charlie Veniot

unread,
Feb 8, 2023, 6:49:08 PM2/8/23
to TiddlyWiki
On Wednesday, February 8, 2023 at 4:52:50 PM UTC-4 sc...sauyet wrote:

I've been writing my reusable content as either plugins or as JSON arrays of
tiddlers.  So I like to break things down into tiny pieces.  But that's not
essential, as your next suggestion points out.

Ditto, as long as there's value in the componentization.  

Which totally reminds me of a favourite article:  What Do We Mean by Componentization (for Knowledge)?

Charlie Veniot

unread,
Mar 1, 2023, 10:42:26 PM3/1/23
to TiddlyWiki
Rejigged the layout a little, and added radio buttons so that we can choose between having access to buttons for transcluding fields, or transclude tiddlers with templates.

Two screenshots:

Screenshot 2023-03-01 11.37.01 PM.png


Screenshot 2023-03-01 11.37.26 PM.png

On Tuesday, February 7, 2023 at 8:44:42 PM UTC-4 Charlie Veniot wrote:
https://youtu.be/ZmXz4PgFH6U

Charlie Veniot

unread,
Mar 24, 2023, 4:26:51 PM3/24/23
to TiddlyWiki
I've added a configuration option so that you can setup your own filter expression to get template tiddlers.


To play with this and grab relevant tiddlers for import into other TiddlyWiki instances: https://tiddlywiki-programming.neocities.org/Charlie_TwDocumentation

The following three tiddlers provide the functionality:

Screenshot 2023-03-24 5.07.22 PM.png

Screenshots of the transclude assistant being used in a new tiddler:

The edit toolbar button (i.e. ```{{x...}}```):
Screenshot 2023-03-24 5.10.22 PM.png

Using the transclude assistant to transclude a tiddler "created" field: 
Screenshot 2023-03-24 5.16.10 PM.png

The result of clicking the "created" button:
Screenshot 2023-03-24 5.18.24 PM.png

Using the transclude assistant to transclude a tiddler with a transclusion template:
Screenshot 2023-03-24 5.20.40 PM.png

The result after picking "tAsDc" and clicking the "Making a custom journal button":

Screenshot 2023-03-24 5.23.42 PM.png

Configuring the transclusion template list with a custom filter:

Screenshot 2023-03-24 5.25.51 PM.png

Reply all
Reply to author
Forward
0 new messages