Skip to content

Commit

Permalink
v0.0.4
Browse files Browse the repository at this point in the history
#1 : 支持国际化+文档树搜索过滤不想干文档
#2 : 文档树搜索框支持清空
  • Loading branch information
Misuzu2027 committed Nov 16, 2024
1 parent 6b991cc commit 3536efa
Show file tree
Hide file tree
Showing 9 changed files with 193 additions and 363 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "syplugin-misuzu-custom",
"author": "Misuzu2027",
"url": "https://github.com/Misuzu2027/syplugin-misuzu-custom",
"version": "0.0.3",
"version": "0.0.4",
"minAppVersion": "3.0.14",
"backends": [
"all"
Expand Down
97 changes: 16 additions & 81 deletions public/i18n/en_US.json
Original file line number Diff line number Diff line change
@@ -1,83 +1,18 @@
{
"openDocumentSearchTab": "Open Document-based Search Tab",
"table": "Table",
"mathBlock": "Formula block",
"quoteBlock": "Blockquote",
"superBlock": "Super block",
"paragraph": "Paragraph",
"doc": "Doc",
"headings": "Headings",
"list": "List",
"listItem": "List item",
"codeBlock": "Code block",
"htmlBlock": "HTML block",
"embedBlock": "Embed block",
"database": "Database",
"video": "Video",
"audio": "Audio",
"IFrame": "IFrame",
"widget": "Widget",
"name": "Name",
"alias": "Alias",
"memo": "Memo",
"allAttrs": "All attribute names and attribute values",
"sortByRankASC": "Relevance ASC",
"sortByRankDESC": "Relevance DESC",
"modifiedASC": "Modified Time ASC",
"modifiedDESC": "Modified Time DESC",
"createdASC": "Created Time ASC",
"createdDESC": "Created Time DESC",
"type": "Type",
"sortByContent": "Original content order",
"sortByTypeAndContent": "Type And Original content order",
"show": "Show",
"hide": "Hide",
"refCountASC": "Ref Count ASC",
"refCountDESC": "Ref Count DESC",
"fileNameASC": "Name Alphabet ASC",
"fileNameDESC": "Name Alphabet DESC",
"fileNameNatASC": "Name Natural ASC",
"fileNameNatDESC": "Name Natural DESC",
"notebook": "Notebook",
"path": "Path",
"sort": "Sort",
"clear": "Clear",
"refresh": "Refresh",
"reference": "Ref",
"documentBasedSearch": "Document-based Search",
"flatDocumentTree": "Flat Document Tree",
"documentBasedSearchDock": "Document-based Search Dock",
"flatDocumentTreeDock": "Flat Document Tree Dock",
"previousLabel": "Previous",
"nextLabel": "Next",
"findInBacklink": "Found ${x} backlink blocks",
"notebookFilter": "Notebook Filter",
"attr": "Attribute",
"other": "Other",
"expand": "Expand",
"collapse": "Collapse",
"noContentBelow": "No content matching the criteria exists below",
"dockModifyTips": "Note: Modifying Dock will refresh the interface.",
"settingDock": "🌈 Dock Settings",
"settingNotebookFilter": "🌈 Notebook Filter",
"settingType": "🌈 Type",
"settingAttr": "🌈 Attribute",
"settingOther": "🌈 Other",
"docSortMethod": "Document Sorting Method",
"contentBlockSortMethod": "Content Block Sorting Method",
"documentsPerPage": "Documents Per Page",
"blockCountBehaviorTips": "If the number of blocks in the query result is less than the current value, all documents will be expanded by default; otherwise, all documents will be collapsed by default.",
"defaultExpansionCount": "Default Expansion Count",
"alwaysExpandSingleDoc": "Always Expand Single Document",
"displayDocBlock": "Display Document Blocks",
"doubleClickTimeThreshold": "Double Click Time Threshold (Milliseconds)",
"previewRefreshHighlightDelayTips": "For code blocks, databases, and other blocks that require time to render, too short a delay may fail. Set to 0 if not needed.",
"previewRefreshHighlightDelay": "Preview Refresh Highlight Delay (Milliseconds)",
"settingHub": "Settings Hub",
"switchCurrentDocumentSearchFailureMessage": "Document Search Plugin: Failed to retrieve the opened document. You can switch tabs or reopen the document.",
"swapDocumentItemClickLogic": "Swap Document Item Click Logic",
"swapDocumentItemClickLogicTips": "When disabled, click to expand search results and double-click to open the document; when enabled, click to open the document and double-click to expand search results.",
"allNotebooks": "All Notebooks",
"specifyNotebook": "Specify Notebook",
"searchInTheCurrentDocument": "Search in the current document"
"PluginSettings": "Misuzu Plugin Settings",
"Style": "Style",
"ModifyReferencedTextStyle": "Modify Referenced Text Style ",
"CodeBlock": "Code Block",
"CodeBlockNaming": "Code Block Naming",
"CommonCodeBlockLanguages": "Common Code Block Languages",
"CommonCodeBlockLanguagesTips": "Selected languages will be pinned at the top, separated by commas.",
"MaximumCodeBlockHeight": "Maximum Code Block Height",
"AdjustCodeBlockHeight": "Adjust Code Block Height",
"AdjustCodeBlockHeightTips": "If the maximum height is set, the drag range will not exceed it.",
"DisplayCollapseExpandCodeBlockButton": "Display Collapse/Expand Button for Code Block",
"CollapsedCodeBlockHeight": "Collapsed Code Block Height",
"FileTree":"Doc Tree",
"KeywordFilterNotebooks": "Keyword Filter for Notebooks",
"KeywordFilterNotebooksMatchSubdocuments": "Keyword Filter for Notebooks - Match Subdocuments"

}
96 changes: 15 additions & 81 deletions public/i18n/zh_CN.json
Original file line number Diff line number Diff line change
@@ -1,84 +1,18 @@
{
"openDocumentSearchTab": "打开搜索页签",
"table": "表格",
"mathBlock": "公式块",
"quoteBlock": "引述块",
"superBlock": "超级块",
"paragraph": "段落",
"doc": "文档",
"headings": "标题",
"list": "列表",
"listItem": "列表项",
"codeBlock": "代码块",
"htmlBlock": "HTML 块",
"embedBlock": "嵌入块",
"database": "数据库",
"video": "视频",
"audio": "音频",
"IFrame": "IFrame",
"widget": "挂件",
"name": "name",
"alias": "别名",
"memo": "备注",
"allAttrs": "所有属性名和属性值",
"sortByRankASC": "按相关度升序",
"sortByRankDESC": "按相关度降序",
"modifiedASC": "修改时间升序",
"modifiedDESC": "修改时间降序",
"createdASC": "创建时间升序",
"createdDESC": "创建时间降序",
"type": "类型",
"sortByContent": "按原文内容顺序",
"sortByTypeAndContent": "类型和原文内容顺序",
"show": "显示",
"hide": "隐藏",
"refCountASC": "引用数升序",
"refCountDESC": "引用数降序",
"fileNameASC": "名称字母升序",
"fileNameDESC": "名称字母降序",
"fileNameNatASC": "名称自然升序",
"fileNameNatDESC": "名称自然降序",
"notebook": "笔记本",
"path": "路径",
"sort": "排序",
"clear": "清空",
"refresh": "刷新",
"reference": "引用",
"documentBasedSearch": "基于文档搜索",
"flatDocumentTree": "扁平化文档树",
"documentBasedSearchDock": "基于文档搜索 Dock",
"flatDocumentTreeDock": "扁平化文档树 Dock",
"previousLabel": "上一页",
"nextLabel": "下一页",
"findInBacklink": "共 ${x} 个反链块",
"notebookFilter": "笔记本过滤",
"attr": "属性",
"other": "其他",
"expand": "展开",
"collapse": "折叠",
"noContentBelow": "下不存在符合条件的内容",
"dockModifyTips": "注:修改 Dock 会刷新界面。",
"settingDock": "🌈 Dock 设置",
"settingNotebookFilter": "🌈 笔记本过滤",
"settingType": "🌈 类型",
"settingAttr": "🌈 属性",
"settingOther": "🌈 其他",
"docSortMethod": "文档排序方式",
"contentBlockSortMethod": "内容块排序方式",
"documentsPerPage": "每页文档数量",
"blockCountBehaviorTips": "如果查询结果的块数量小于当前值,默认展开全部文档;反之会默认折叠全部文档。",
"defaultExpansionCount": "默认展开数",
"alwaysExpandSingleDoc": "单篇文档始终展开",
"displayDocBlock": "显示文档块",
"doubleClickTimeThreshold": "双击时间阈值(毫秒)",
"previewRefreshHighlightDelayTips": "用于代码块、数据库这种需要时间渲染的块高亮,太短可能会失败,不需要可以设置为0",
"previewRefreshHighlightDelay": "刷新预览区高亮延迟(毫秒)",
"settingHub": "设置中心",
"switchCurrentDocumentSearchFailureMessage": "文档搜索插件: 没有获取到打开的文档,可切换页签或重新打开文档。",
"swapDocumentItemClickLogic": "交换文档项点击逻辑",
"swapDocumentItemClickLogicTips": "禁用时,单击展开搜索结果,双击打开文档;启用时,单击打开文档,双击展开搜索结果。",
"allNotebooks": "所有笔记本",
"specifyNotebook": "指定笔记本",
"searchInTheCurrentDocument": "在当前文档查询"
"PluginSettings": "Misuzu插件设置",
"Style": "样式",
"ModifyReferencedTextStyle": "修改引用文本样式 ",
"CodeBlock": "代码块",
"CodeBlockNaming": "代码块命名",
"CommonCodeBlockLanguages": "代码块常用语言",
"CommonCodeBlockLanguagesTips": "选择语言时,会把这些语言置顶显示,英文逗号隔开多个语言 ",
"MaximumCodeBlockHeight": "代码块最大高度",
"AdjustCodeBlockHeight": "代码块调整高度",
"AdjustCodeBlockHeightTips": "如果设置了最大高度,拖拽范围也不会超过最大高度",
"DisplayCollapseExpandCodeBlockButton": "代码块显示折叠展开按钮",
"CollapsedCodeBlockHeight": "代码块折叠后高度",
"FileTree":"文档树",
"KeywordFilterNotebooks": "关键字过滤笔记本",
"KeywordFilterNotebooksMatchSubdocuments": "关键字过滤笔记本-匹配子文档"

}
Loading

0 comments on commit 3536efa

Please sign in to comment.