Skip to content

Commit

Permalink
feat: use $:/plugins/kookma/toc for folder
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Jul 31, 2024
1 parent 1383f9b commit 9d6eef4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/itonnote-plugin/Sidebar/FolderMenu.tid
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ description: <<lingo Config/FolderMenu/Description $:/plugins/linonetwo/itonnote
is-dropdown: yes
type: text/vnd.tiddlywiki

\import [all[tiddlers+shadows]tag[$:/tags/Macro/Toc]]
\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/

<$scrollable fallthrough="none" class="tc-popup-keep tc-menubar-dropdown-sidebar">

<$let toc-open-icon="$:/core/images/fold-button" toc-closed-icon="$:/core/images/folder">
<div class="tc-table-of-contents">
<$transclude $variable="toc-selective-expandable" tag={{$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle}} />
<$transclude $variable="toc-ui" tag={{$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle}} />
</div>
</$let>

Expand Down
5 changes: 4 additions & 1 deletion src/itonnote-plugin/language/en-GB/FolderMenu.tid
Original file line number Diff line number Diff line change
Expand Up @@ -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.
9 changes: 6 additions & 3 deletions src/itonnote-plugin/language/zh-Hans/FolderMenu.tid
Original file line number Diff line number Diff line change
Expand Up @@ -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}} 按钮,点击可以看到一系列新建操作按钮,可以用于在文件夹内新建条目
** 此时也可以拖动文件夹排序
3 changes: 2 additions & 1 deletion src/itonnote-plugin/plugin.info
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"version": "3.0.0",
"list": "readme ControlPanel tree",
"dependents": [
"$:/plugins/tiddlywiki/browser-sniff"
"$:/plugins/tiddlywiki/browser-sniff",
"$:/plugins/kookma/toc"
]
}

0 comments on commit 9d6eef4

Please sign in to comment.