From 9d6eef47738d10b637fe04d9b293e03e4c6b5796 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Wed, 31 Jul 2024 16:40:55 +0800 Subject: [PATCH] feat: use $:/plugins/kookma/toc for folder --- src/itonnote-plugin/Sidebar/FolderMenu.tid | 3 ++- src/itonnote-plugin/language/en-GB/FolderMenu.tid | 5 ++++- src/itonnote-plugin/language/zh-Hans/FolderMenu.tid | 9 ++++++--- src/itonnote-plugin/plugin.info | 3 ++- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/itonnote-plugin/Sidebar/FolderMenu.tid b/src/itonnote-plugin/Sidebar/FolderMenu.tid index 4170bba..f9b3229 100644 --- a/src/itonnote-plugin/Sidebar/FolderMenu.tid +++ b/src/itonnote-plugin/Sidebar/FolderMenu.tid @@ -5,13 +5,14 @@ description: < <$let toc-open-icon="$:/core/images/fold-button" toc-closed-icon="$:/core/images/folder">
- <$transclude $variable="toc-selective-expandable" tag={{$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle}} /> + <$transclude $variable="toc-ui" tag={{$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle}} />
diff --git a/src/itonnote-plugin/language/en-GB/FolderMenu.tid b/src/itonnote-plugin/language/en-GB/FolderMenu.tid index 22ec32e..3e58a4c 100644 --- a/src/itonnote-plugin/language/en-GB/FolderMenu.tid +++ b/src/itonnote-plugin/language/en-GB/FolderMenu.tid @@ -8,5 +8,8 @@ If you want to modify the root folder, please open the [[Settings|$:/plugins/lin * tagged with A, which is equivalent to storing the file in folder A and using the contents of A as the Readme of the folder * Use the "Create a new tiddler with this tag name" button in any Tiddler to create a file with the current Tiddler as the folder -* Click the {{$:/core/images/folder}} button (to make it {{$:/core/images/fold-button}}) to expand the folder +* Click the {{$:/core/images/down-arrow}} button (to make it {{$:/core/images/fold-button}}) to expand the folder * Click directly on the name of a folder to see the Readme of that folder +* Click {{$:/core/images/options-button}} button to open more buttons, you can see {{$:/core/images/edit-button}} button, click it to open edit mode. +** In edit mode, hover over the folder and the {{$:/core/images/down-arrow}} button will appear on the far right, click on it to see a series of new action buttons, which can be used to create new entries in the folder. +** You can also drag the folder to sort it. diff --git a/src/itonnote-plugin/language/zh-Hans/FolderMenu.tid b/src/itonnote-plugin/language/zh-Hans/FolderMenu.tid index ca66638..cbc30fe 100644 --- a/src/itonnote-plugin/language/zh-Hans/FolderMenu.tid +++ b/src/itonnote-plugin/language/zh-Hans/FolderMenu.tid @@ -6,7 +6,10 @@ title: $:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu 若想修改根文件夹,请打开[[设置|$:/plugins/linonetwo/itonnote/ControlPanel]]。 -* 打了 A 标签,即相当于将文件存储在文件夹 A 中,并以 A 的内容作为文件夹的 Readme +* 打了 A 标签,即相当于将文件存储在文件夹 A 中,并以 A 的内容作为文件夹的说明文本 * 在任意条目中使用「创建一个标签为此条目名称的新条目」按钮,可以创建以当前条目为文件夹的文件 -* 点击 {{$:/core/images/folder}} 按钮(使它变成 {{$:/core/images/fold-button}})可以展开文件夹 -* 直接点击文件夹的名字可以查看这个文件夹的 Readme +* 点击 {{$:/core/images/down-arrow}} 按钮(使它变成 {{$:/core/images/fold-button}})可以展开文件夹 +* 直接点击文件夹的名字可以查看这个文件夹的说明文本 +* 点击 {{$:/core/images/options-button}} 按钮可以打开更多按钮,可以看到 {{$:/core/images/edit-button}} 按钮,点击后可以打开编辑模式。 +** 编辑模式下,鼠标悬浮在文件夹上会在最右侧出现 {{$:/core/images/down-arrow}} 按钮,点击可以看到一系列新建操作按钮,可以用于在文件夹内新建条目 +** 此时也可以拖动文件夹排序 \ No newline at end of file diff --git a/src/itonnote-plugin/plugin.info b/src/itonnote-plugin/plugin.info index 0d396d6..cb3a279 100644 --- a/src/itonnote-plugin/plugin.info +++ b/src/itonnote-plugin/plugin.info @@ -8,6 +8,7 @@ "version": "3.0.0", "list": "readme ControlPanel tree", "dependents": [ - "$:/plugins/tiddlywiki/browser-sniff" + "$:/plugins/tiddlywiki/browser-sniff", + "$:/plugins/kookma/toc" ] }