Replies: 1 comment 5 replies
-
Hi @linonetwo I agree that the ability to programmatically extract structured documentation would be very useful. I commented more fully over at #8154 (comment). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Command palette allow trigger actionString with tag
tags: $:/tags/Actions
.I'm writing some AI action string that have some input prompt from variable, and output to a temp tiddler or user tiddler, tiddler name is get from variable too.
How to write metadata on fields or parameter widget, to tell Command palette plugin, what variable does it need? Like JSDoc. And it should allow i18n in name/description, so user can know what each variable means.
My solution
I thought tw's metadata use
#
to mean.
in json. So thismeans
So I can reflect the usage of this action string tiddler in command palette's UI.
And if you agree with this pattern, I think it will also work for #8154 , so we can also add doc for build-in filter operator and action widget, and show then in a low-code UI.
Another not so tiddlywiki way
Use a
schema
field orvariables-schema
field, and put a JSONSchema in it. But it will be harder to edit.I'm using this approach in https://tiddly-gittly.github.io/super-tag/ , but I don't think it will suit for tw-core.
Put in another tiddler
Maybe can use a data tiddler, and transclude it in
variables-schema
field.Beta Was this translation helpful? Give feedback.
All reactions