Simple content template tool, Prior art or ideas?

I am looking for examples or Ideas from the community on the use of simple content templates.

  • For example any tiddler with the template tag can be searched and a title selected and the content of that template appended at the end of the current tiddler (in view) or at the cursor (in edit).

I was just reviewing @Mohammad’s Kara, todo and interstitial lists and realised a simple tool like this may be ideal for writing prepared lists, such as steps to do a reoccurring item, eg get ingredients, then paste the checklist as needed into a required tiddler.

  • Rather than make a custom tool I thought this deserves a general and easy to use tool.
  • Note this is an additive template content tool, other methods are available to create new tiddlers from a template.

Advanced features

  • Enhance the tool such that the template tiddler;
    • Has special fields to add to the tiddler in which it is being inserted such as tags.
    • Could contain actions to apply to the target tiddler.
    • The title of each template used is appended to a templates-applied list field
  • List all content templates in sidebar tab (add a searchable sublist if have a lot of content) and enable the “link” to be dragged and drop the content of the title into the cursor position in the editor

Is there any prior work that does exactly this?

If you understand what I am trying to do what core or enhanced features should this tool have?

1 Like

(First, sorry for the slow reply; other work has kept me from doing much TW for two weeks. And that will continue through the weekend.)

I’m not really a user of the Edit Toolbar. I’ve done most of my writing in Markdown for years, and am now doing more in Wikitext. I do it without the buttons (and except for Excise and Toggle Preview, without the keyboard shortcuts either.) But if I read your suggestion right, it sounds like an enhancement to the Snippet tool.

But instead of configuring with a caption and the text to insert, you might supply a tiddler holding a procedure that used actions to add tags, and perhaps added/altered other fields, and would insert its text output at the cursor.

Does that sound like I’ve captured what you’re talking about?

I’m not entirely sure how it would be implemented. I see several likely snags, but I assume we could get past them. Would that capture the needs in edit mode? It shouldn’t be hard to add a view mode extension that uses the same mechanism.

I expect applying a view mode content template would append the content to the text field to avoid destroying the existing content and applying any other template features like adding/removing tags and fields.

in edit mode I only imagined inserting the content of the template tiddler at the cursor position using an editor toolbar button. Perhaps after a title search like the link button but restricted to content template tiddlers.