Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrychenzw committed Jan 14, 2025
1 parent eaf58a3 commit c2bd1ab
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 72 deletions.
2 changes: 0 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ interface ZKNavigationSettings {
siblingsOrder: string;
showAllToggle: boolean;
showAll: boolean;
play: boolean;
outlineLayer: number;
maxLenMainModel: number;
maxLenIndexModel: number;
Expand Down Expand Up @@ -160,7 +159,6 @@ const DEFAULT_SETTINGS: ZKNavigationSettings = {
siblingsOrder: "number",
showAll: false,
showAllToggle: true,
play: true,
outlineLayer: 2,
maxLenMainModel: 100,
maxLenIndexModel: 100,
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "zettelkasten-navigation",
"name": "zettelkasten navigation",
"version": "1.0.7",
"version": "1.0.8",
"minAppVersion": "1.5.7",
"description": "Visualize a Luhmann-style zettelkasten.",
"author": "terrychenzw",
Expand Down
11 changes: 7 additions & 4 deletions src/lang/locale/en.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
// setting.ts
// settings.ts
"ZK main notes": "Main notes",
"Main notes folder location": "⚠Main notes folder location",
"Specify a folder location to identify main notes": "Specify a folder location to identify main notes",
Expand All @@ -18,6 +18,7 @@ export default {
'"_"(underscore)': '"_"(underscore)',
"Retrieval": "Retrieval",
"Indexes folder location": "⚠Keyword files folder location",
"index_description": "A vaild keyword index file is a .md file includes a few main note links",
"zk-index-graph-view": "zk-index-graph-view",
"Name of index button": "Button name",
"Suggest mode of index modal": "Suggest mode of keyword modal",
Expand Down Expand Up @@ -72,7 +73,8 @@ export default {
'letter first': 'letter first',
"List length": "List length",
"Maximum number of notes showing in Modal.": "Maximum number of notes showing in Modal.",
"Node menu": "Node menu",
"Node menu": "Node menu",
"node_menu_des":"Right click to open the menu",
"create node": "create node",
"specify a command name": "specify a command name",
"delete node": "delete node",
Expand All @@ -81,7 +83,7 @@ export default {
"experimental": "⚠experimental",
"multiple IDs for main notes": "Allow multiple IDs for main notes",
"multiple IDs description": "You can add a main note into other branches by assigning additional IDs",
"Specify a frontmatter field(array) for multiple IDs": "Specify a file property(array) for storing multiple IDs",
"Specify a frontmatter field(list) for multiple IDs": "Specify a file property(list) for storing multiple IDs",
"auto-copy ID":"auto-copy ID",
"auto-copy-des": "auto-copy {id, path, created}",
"same width for siblings": "Set same width for siblings",
Expand All @@ -92,7 +94,8 @@ export default {
'file path': 'file path',
'created time':'created time',
'none': 'none',
"play controller": "play controller",
"play controller": "Play controller",
"play_des": "open the play controller",
"Set color for nodes": "Set color for branch's nodes",
"Set datetime format": "Set datetime format",

Expand Down
47 changes: 25 additions & 22 deletions src/lang/locale/zh.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
export default {
// setting.ts
// settings.ts
"ZK main notes": "主笔记",
"Main notes folder location": "⚠主笔记文件存放位置",
"Specify a folder location to identify main notes": "指定主笔记的文件夹",
"Example: folder1/folder2": "比如: 文件夹/子文件夹",
"Main notes tag": "主笔记标签",
"Specify a tag to identify main notes": "指定主笔记的标签(可选)",
"Note ID field options": "⚠ID字段选项",
"Option 1: Filename is note ID": "选项1: 文件名为ID",
"Option 2: Metadata is note ID": "选项2: 属性字段为ID",
"Note ID field options": "⚠ID(笔记编号)字段选项",
"Option 1: Filename is note ID": "选项1: 文件名作为ID",
"Option 2: Metadata is note ID": "选项2: 笔记属性作为ID",
"Option 3: Prefix of filename is note ID": "选项3: 文件名前缀为ID",
"Specify a frontmatter field for note's title": "⚠指定一个属性字段作为笔记文字标题",
"Specify a frontmatter field for note's ID": "⚠指定一个属性字段作为笔记ID",
"Specify a separator between ID and title": "⚠指定笔记ID和文字标题的分隔符",
"Specify a frontmatter field for note's title": "⚠指定一个属性名称作为文字标题",
"Specify a frontmatter field for note's ID": "⚠指定一个属性名称作为ID",
"Specify a separator between ID and title": "⚠指定ID和文字标题的分隔符",
'" "(blank)': '" "(空格)',
'"-"(hyphen)': '"-"(横线)',
'"_"(underscore)': '"_"(下划线)',
"Retrieval": "检索设置",
"Indexes folder location": "⚠关键词文件存放位置",
"index_description": "关键词文件是指以关键词为文件名,内容包含少量主笔记出链的.md文件.",
"zk-index-graph-view": "分支视图",
"Name of index button": "按钮名称",
"Suggest mode of index modal": "关键词查找模式",
"Suggest mode of main note modal": "主笔记查找模式",
"Keyword Order": "顺序查找",
"Fuzzy Suggest": "模糊查找",
"ID Order": "顺序查找",
"Set red dash line for nodes with ID ends with letter": "ID为字母结尾的节点设置红色虚线框",
"Set red dash line for nodes with ID ends with letter": "ID(笔记编号)为字母结尾的节点设置红色虚线框",
"In order to distinguish nodes which ID ends with letter and number": "区分: 数字结尾ID vs 字母结尾ID",
"Fold node toggle": "折叠开关",
"Open the fold icon(🟡🟢)": "点击图标(🟡🟢)进行折叠",
"zk-local-graph-view": "局部关系视图",
"Open close-relative graph": "打开邻近视图",
"Open close-relative graph": "打开邻近图",
"Mermaid graph to display parent, siblings and sons": "显示当前笔记的父节点,手足节点和子节点",
"Open inlinks graph": "打开入链视图",
"Open inlinks graph": "打开入链图",
"Mermaid graph to display inlinks": "显示当前笔记及其所有入链",
"Open outlinks graph": "打开出链视图",
"Open outlinks graph": "打开出链图",
"Mermaid graph to display outlinks": "显示当前笔记及其所有出链",
"Enter a number to set the height of graph in pixels.": "输入一个像素值来设置视图的高度.",
"all file extension": "检索所有类型出链",
Expand All @@ -49,13 +50,13 @@ export default {
'"TB": top to bottom': '"TB": 从上到下',
'"BT": bottom to top': '"BT": 从下到上',
"Detect file extensions": "限定出链的文件类型",
"Toolbar": "图标工具栏",
"Open the icons(commands) in the branch graph.":"打开分支视图的图标命令栏.",
"Toolbar": "图标命令栏",
"Open the icons(commands) in the branch graph.":"打开右上角的图标命令栏",
"Index button": "关键词检索按钮",
"Main Notes button": "主笔记检索按钮",
"Name of main note button": "按钮名称",
"Custom created time(optional)": "主笔记创建时间(自定义字段)",
"Specify a frontmatter field for time of note created time": "指定一个属性字段作为主笔记的创建时间",
"Specify a frontmatter field for time of note created time": "指定一个属性名称作为主笔记的创建时间",
"History List": "检索记录",
"And set the list length": "设置最大打开记录条数",
"list tree": "大纲视图",
Expand All @@ -66,12 +67,13 @@ export default {
"if empty, it will create a new canvas file every time": "如果不设置,每次都会产生一个新的白板文件",
"Example: folder/filename.canvas": "比如: 文件夹/文件名.canvas",
"siblings order": "手足节点(同级)排序",
"siblings order description": "【数字优先】: 1->2...->a->b;【字母优先】: a->b...->1->2;",
"siblings order description": "在同级节点排序中,选择以ID中的数字或是字母为更高优先级",
'number first': "数字优先",
'letter first': "字母优先",
"List length": "最大条数",
"Maximum number of notes showing in Modal.": "设置在弹框中显示的最大笔记条数.",
"Node menu": "节点菜单",
"Node menu": "节点命令菜单",
"node_menu_des":"在节点上右击鼠标打开命令菜单",
"create node": "创建节点",
"specify a command name": "指定命令名称",
"delete node": "删除节点",
Expand All @@ -80,8 +82,8 @@ export default {
"experimental": "⚠实验性功能",
"multiple IDs for main notes": "允许主笔记有多个ID",
"multiple IDs description": "通过给主笔记分配额外的ID将其添加到其它分支",
"Specify a frontmatter field(array) for multiple IDs":"指定一个属性字段(数组)来保存多个ID",
"auto-copy ID": "自动复制节点ID",
"Specify a frontmatter field(list) for multiple IDs":"指定一个类型为列表的属性名称来存放多个ID",
"auto-copy ID": "自动复制节点笔记编号",
"auto-copy-des": "自动复制节点对象 {id, path, created}",
"same width for siblings": "设置手足节点同宽",
"display created time": "显示创建时间(当光标悬停在节点链接时)",
Expand All @@ -92,6 +94,7 @@ export default {
'created time':'创建时间',
'none': '不复制',
"play controller": "播放控制器",
"play_des": "打开底部居中的播放控制器",
"Set color for nodes": "设置分支节点颜色",
"Set datetime format": "设置日期时间格式",

Expand All @@ -104,9 +107,9 @@ export default {
"root": "根节点",
"next": "向下一层",
"end": "最后一层",
"id": "编号",
"title": "标题",
"both": "全部",
"id": "ID",
"title": "文字标题",
"both": "ID+标题",
"Current index: ": "当前关键词:",
"random index": "随机关键词",
"random main note": "随机主笔记",
Expand All @@ -115,7 +118,7 @@ export default {
"Index: ": "关键词: ",
"has no valid main note outlinks": "没有包含有效主笔记链接",
"table view": "表格视图",
"Current note: ": "当前笔记: ",
"Current note: ": "当前主笔记: ",
"settings": "打开设置",
"export to canvas": "导出到白板",
"select a main note": "选择一个主笔记",
Expand Down
Loading

0 comments on commit c2bd1ab

Please sign in to comment.