1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

refactor: format

This commit is contained in:
lin onetwo 2024-03-28 21:02:05 +08:00
parent 4fb841b6cf
commit 9298e2d70b

View File

@ -2,9 +2,22 @@ title: $:/core/ui/EditTemplate/type
tags: $:/tags/EditTemplate
first-search-filter: [all[shadows+tiddlers]prefix[$:/language/Docs/Types/]sort[description]sort[group-sort]removeprefix[$:/language/Docs/Types/]search<userInput>]
\define lingo-base() $:/language/EditTemplate/
\define input-cancel-actions() <$list filter="[<storeTitle>get[text]] [<currentTiddler>get[type]] +[limit[1]]" emptyMessage="""<<cancel-delete-tiddler-actions "cancel">>"""><$action-sendmessage $message="tm-remove-field" $param="type"/><$action-deletetiddler $filter="[<typeInputTiddler>] [<refreshTitle>] [<typeSelectionTiddler>]"/></$list>
\whitespace trim
\procedure lingo-base() $:/language/EditTemplate/
\procedure input-cancel-actions()
<$list
filter="[<storeTitle>get[text]] [<currentTiddler>get[type]] +[limit[1]]"
emptyMessage="""<<cancel-delete-tiddler-actions "cancel">>"""
>
<$action-sendmessage
$message="tm-remove-field"
$param="type"
/>
<$action-deletetiddler
$filter="[<typeInputTiddler>] [<refreshTitle>] [<typeSelectionTiddler>]"
/>
</$list>
\end
<$set name="refreshTitle" value=<<qualify "$:/temp/type-search/refresh">>>
<div class="tc-edit-type-selector-wrapper">
<em class="tc-edit tc-small-gap-right"><<lingo Type/Prompt>></em>