Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format $:/core/ui/EditTemplate/type #8112

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

linonetwo
Copy link
Contributor

So it is easier to modify it.

I use GPT4 to format it.

Copy link

vercel bot commented Mar 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tiddlywiki5 ✅ Ready (Inspect) Visit Preview Mar 28, 2024 1:41pm

@Jermolene
Copy link
Owner

Thanks @linonetwo I do not trust LLMs not to make mistakes, so I think it would be advisable to verify that the parse tree output is the same using a diff tool.

This template will render the parse tree of a tiddler:

<$wikify name="json" text={{!!text}} type={{!!type}} mode="$mode$" output="parsetree">
<$text text=<<json>>/>
</$wikify>

\procedure input-cancel-actions()
<$list
filter="[<storeTitle>get[text]] [<currentTiddler>get[type]] +[limit[1]]"
emptyMessage="""<<cancel-delete-tiddler-actions "cancel">>"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With TW we use tabs as indentation

<$linkcatcher to="!!type">
<$list
filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group-sort]]'
>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, if there is only 1 line, it should stay as 1 line. It should not be formatted that way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants