-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
26 additions
and
9 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"author": "LinOnetwo", | ||
"core-version": ">=5.1.22", | ||
"dependents": "", | ||
"description": "Display caption in title area.", | ||
"list": "readme config tree", | ||
"plugin-type": "plugin", | ||
"text": "{\"tiddlers\":{\"$:/plugins/linonetwo/title-caption/edit/TitleStyle.css\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/TitleStyle.css\",\"type\":\"text/vnd.tiddlywiki\",\"tags\":\"$:/tags/Stylesheet\",\"text\":\"/**\\n * There will be two inputs, and we select the nearest div to the title input and input.title-caption-plugin-caption-edit, then select the first input that is followed by the title preview element `tc-tiddler-title`\\n */\\ndiv.tc-tiddler-edit-frame div:has(>.title-caption-plugin-caption-edit) .tc-tiddler-title + input {\\n font-size: unset;\\n}\"},\"$:/plugins/linonetwo/title-caption/edit/captionCascade\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/captionCascade\",\"tags\":\"$:/tags/EditTemplate\",\"list-after\":\"$:/core/ui/EditTemplate/title\",\"code-body\":\"yes\",\"text\":\"<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/EditCaptionTemplateTitleFilter]!is[draft]get[text]] }}} />\\n\"},\"$:/plugins/linonetwo/title-caption/edit/hasCaptionFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/hasCaptionFilter\",\"tags\":\"$:/tags/EditCaptionTemplateTitleFilter\",\"text\":\"[<currentTiddler>has[caption]then[$:/plugins/linonetwo/title-caption/edit/useCaptionEdit]]\"},\"$:/plugins/linonetwo/title-caption/edit/isTitlelessFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/isTitlelessFilter\",\"tags\":\"$:/tags/EditCaptionTemplateTitleFilter\",\"text\":\"[<currentTiddler>has[_is_titleless]then[$:/plugins/linonetwo/title-caption/edit/useCaptionEdit]]\"},\"$:/plugins/linonetwo/title-caption/edit/useCaptionEdit\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/useCaptionEdit\",\"code-body\":\"yes\",\"text\":\"<$edit-text tiddler=<<currentTiddler>> field=\\\"caption\\\" focus=\\\"yes\\\" class=\\\"tc-titlebar tc-edit-texteditor title-caption-plugin-caption-edit\\\"/>\\n\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Readme\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\nGithub: https://github.com/tiddly-gittly/title-caption\\n\\n!! Tryout\\n\\n!!! Auto generation\\n\\nWith the following i-message layout, you can create entries where the `title` field is a random ID and the `caption` field is the real title.\\n\\n<<simple-layout-launcher>>\\n\\n!!! Manual creation\\n\\nCreate a new tiddler, then add the `caption` field, or the `_is_titleless` field.\\n\\nOnce added, you'll notice that the old \\\"title\\\" edit box becomes an edit box for the `caption` field, and the edit box for the `title` field is now a smaller, secondary input box.\\n\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Name\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Name\",\"text\":\"Title Caption\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Description\",\"text\":\"Display caption in title area.\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/Description\",\"text\":\"These settings let you customise the behaviour of \\\"Title Caption\\\" plugin.\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/PluginConfigs/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/PluginConfigs/Caption\",\"text\":\"Plugin Configs\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Caption\",\"text\":\"XXX\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Description\",\"text\":\"XXX is XXX\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/YYY/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/YYY/Caption\",\"text\":\"YYY\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/ZZZ/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/ZZZ/Caption\",\"text\":\"ZZZ\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Readme\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\nGithub: https://github.com/tiddly-gittly/title-caption\\n\\n!! Tryout\\n\\n!!! 自动生成\\n\\n用下面的 i信息 布局,可以创建出 `title` 字段是随机 ID,`caption` 字段是真正标题的条目。\\n\\n<<simple-layout-launcher>>\\n\\n!!! 手动创建\\n\\n创建新条目,然后添加 `caption` 字段,或 `_is_titleless` 字段。\\n\\n添加后,你会发现标题编辑框会变成编辑 `caption` 字段的内容,对 `title` 字段的编辑框则变成了一个较小的、次要的输入框。\\n\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Name\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Name\",\"text\":\"标题字段\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Description\",\"text\":\"将 Caption 字段显示为标题\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/Description\",\"text\":\"通过这些设置,您可以自定义「标题字段」插件的行为。\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/PluginConfigs/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/PluginConfigs/Caption\",\"text\":\"插件设置\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Caption\",\"text\":\"配置甲\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Description\",\"text\":\"配置甲是甲\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/YYY/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/YYY/Caption\",\"text\":\"配置乙\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/ZZZ/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/ZZZ/Caption\",\"text\":\"配置丙\"},\"$:/plugins/linonetwo/title-caption/readme\":{\"title\":\"$:/plugins/linonetwo/title-caption/readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n<<lingo Readme>>\\n\"},\"$:/core/ui/sideBar/timeline\":{\"title\":\"$:/core/ui/sideBar/timeline\",\"tags\":\"$:/tags/Macro\",\"text\":\"\\\\define timeline-title() <$transclude field=\\\"caption\\\"><$view field=\\\"title\\\"/></$transclude>\\n\"},\"$:/plugins/linonetwo/title-caption/tree\":{\"title\":\"$:/plugins/linonetwo/title-caption/tree\",\"text\":\"<<tree prefix:\\\"$:/plugins/linonetwo/title-caption/\\\">>\"},\"$:/plugins/linonetwo/title-caption/view/hasCaptionFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/hasCaptionFilter\",\"tags\":\"$:/tags/ViewTemplateTitleFilter\",\"list-before\":\"$:/config/ViewTemplateTitleFilters/default\",\"text\":\"[<currentTiddler>has[caption]then[$:/plugins/linonetwo/title-caption/view/useCaptionView]]\"},\"$:/plugins/linonetwo/title-caption/view/isTitlelessFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/isTitlelessFilter\",\"tags\":\"$:/tags/ViewTemplateTitleFilter\",\"list-after\":\"$:/plugins/linonetwo/title-caption/view/hasCaptionFilter\",\"text\":\"[<currentTiddler>has[_is_titleless]then[$:/plugins/linonetwo/title-caption/view/useCaptionView]]\"},\"$:/plugins/linonetwo/title-caption/view/useCaptionView\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/useCaptionView\",\"text\":\"\\\\whitespace trim\\n<h2 class=\\\"tc-title\\\">\\n <$transclude field=\\\"caption\\\">\\n <$view field=\\\"title\\\"/>\\n </$transclude>\\n</h2>\\n\"}}}", | ||
"title": "$:/plugins/linonetwo/title-caption", | ||
"type": "application/json", | ||
"version": "0.0.2", | ||
"Modern.TiddlyDev#SHA256-Hashed": "b430b10a171a83191345d0ef86973163054d00b1ad24ddd0450453ca2057c4fb", | ||
"name": "Title -> Caption" | ||
} | ||
] |