🎨 桌面端支持同时打开多个工作空间 https://github.com/siyuan-note/siyuan/issues/4567

This commit is contained in:
Liang Ding 2023-01-09 11:46:37 +08:00
parent c0f007c44f
commit aecb71de00
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
15 changed files with 335 additions and 240 deletions

View file

@ -215,7 +215,7 @@
<label class="b3-label">
<div>
🗂️ 工作空间
<div class="b3-label__text"> 工作空间用于存放数据,后续可在 <kbd>设置</kbd> - <kbd>关于</kbd> 中切换</div>
<div class="b3-label__text"> 工作空间用于存放数据,后续可在顶栏菜单中切换</div>
</div>
<div class="fn__space"></div>
<div class="fn__flex-1"></div>
@ -258,8 +258,8 @@
<label class="b3-label">
<div>
🗂️ Workspace
<div class="b3-label__text">The workspace is used to store data, which can be switched later in <br>
<kbd>Settings</kbd> - <kbd>About</kbd>
<div class="b3-label__text">The workspace is used to store data, which can be switched <br>
later in the top bar menu later
</div>
</div>
<div class="fn__space"></div>

View file

@ -5,7 +5,8 @@
"Properties": {
"id": "20200924100906-0u4zfq3",
"title": "Window and Tab",
"type": "doc"
"type": "doc",
"updated": "20200924100906"
},
"Children": [
{

View file

@ -4,7 +4,6 @@
"Type": "NodeDocument",
"Properties": {
"id": "20201004194026-s8h2cog",
"scroll": "{\u0026quot;startId\u0026quot;:\u0026quot;20210104091447-8iiuxlt\u0026quot;,\u0026quot;endId\u0026quot;:\u0026quot;20210117211053-tq2km4f\u0026quot;,\u0026quot;scrollTop\u0026quot;:346,\u0026quot;focusId\u0026quot;:\u0026quot;20210302223802-ghpurq7\u0026quot;,\u0026quot;focusStart\u0026quot;:22,\u0026quot;focusEnd\u0026quot;:22}",
"title": "Use on browser",
"type": "doc",
"updated": "20221025093157"

View file

@ -5,7 +5,8 @@
"Properties": {
"id": "20210110181011-fbhoesf",
"title": "Daily notes",
"type": "doc"
"type": "doc",
"updated": "20210110181011"
},
"Children": [
{

View file

@ -5,7 +5,7 @@
"Properties": {
"id": "20230106104821-9nfphwm",
"title": "Workspace",
"updated": "20230107212528"
"updated": "20230109114122"
},
"Children": [
{
@ -105,75 +105,125 @@
]
},
{
"ID": "20230106105213-6rjvwvf",
"Type": "NodeParagraph",
"ID": "20230109113955-ja8w7gp",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20230106105213-6rjvwvf",
"updated": "20230106105236"
"id": "20230109113955-ja8w7gp",
"updated": "20230109113959"
},
"Children": [
{
"Type": "NodeText",
"Data": "We can switch workspaces in "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Settings"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "About"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Workspace"
},
{
"Type": "NodeText",
"Data": ". The desktop side supports opening multiple workspaces at the same time, but the mobile side can only switch different workspaces."
"Data": "Switch workspace"
}
]
},
{
"ID": "20230107212451-h2phr5b",
"Type": "NodeParagraph",
"ID": "20230109113955-471odxk",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230107212451-h2phr5b",
"updated": "20230107212528"
"id": "20230109113955-471odxk",
"updated": "20230109114122"
},
"Children": [
{
"Type": "NodeText",
"Data": "If your multiple workspaces need to be started frequently, you can consider creating a different startup entry for each workspace and specify the startup parameter "
"ID": "20230109113955-4p8sitz",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230109113955-4p8sitz",
"updated": "20230109114122"
},
"Children": [
{
"ID": "20230109113955-25acju9",
"Type": "NodeParagraph",
"Properties": {
"id": "20230109113955-25acju9",
"updated": "20230109114014"
},
"Children": [
{
"Type": "NodeText",
"Data": "On the desktop, multiple workspaces can be opened in the drop-down menu on the left side of the top bar"
}
]
},
{
"ID": "20230109113955-f2iskk4",
"Type": "NodeParagraph",
"Properties": {
"id": "20230109113955-f2iskk4",
"updated": "20230109114122"
},
"Children": [
{
"Type": "NodeText",
"Data": "If your multiple workspaces need to be started frequently, you can consider creating a different startup entry for each workspace and specify the startup parameter "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace absolute path of the workspace"
},
{
"Type": "NodeText",
"Data": ". For example, multiple shortcuts can be copied on a Windows system, and each Shortcut - Property - Target is followed by a workspace path parameter, such as "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace F:\\SiYuan"
},
{
"Type": "NodeText",
"Data": "."
}
]
}
]
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace absolute path of the workspace"
},
{
"Type": "NodeText",
"Data": ". For example, multiple shortcuts can be copied on a Windows system, and each Shortcut - Property - Target is followed by a workspace path parameter, such as "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace F:\\SiYuan"
},
{
"Type": "NodeText",
"Data": "."
"ID": "20230109113955-gi1ao5j",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230109113955-gi1ao5j",
"updated": "20230109114043"
},
"Children": [
{
"ID": "20230109113955-hpw3tsz",
"Type": "NodeParagraph",
"Properties": {
"id": "20230109113955-hpw3tsz",
"updated": "20230109114043"
},
"Children": [
{
"Type": "NodeText",
"Data": "On the mobile, we can switch between different workspaces in "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "About"
},
{
"Type": "NodeText",
"Data": " in the right column"
}
]
}
]
}
]
},

View file

@ -7,7 +7,7 @@
"id": "20200923234731-h3zkwm2",
"title": "FAQ",
"type": "doc",
"updated": "20230106105350"
"updated": "20230109113754"
},
"Children": [
{
@ -242,7 +242,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20210428222603-g1752n7",
"updated": "20230106105350"
"updated": "20230109113754"
},
"Children": [
{
@ -258,25 +258,7 @@
},
{
"Type": "NodeText",
"Data": " folder (the default is in the user's home directory Documents/SiYuan, which can be modified in "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Settings"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "About"
},
{
"Type": "NodeText",
"Data": "), in the workspace/data/ folder:"
"Data": " folder (the default is in the user's home directory/Documents/SiYuan), in the workspace/data/ folder:"
}
]
},

View file

@ -5,7 +5,8 @@
"Properties": {
"id": "20200822191536-rm6hwid",
"title": "窗口和页签",
"type": "doc"
"type": "doc",
"updated": "20200822191536"
},
"Children": [
{

View file

@ -4,7 +4,6 @@
"Type": "NodeDocument",
"Properties": {
"id": "20201004184819-nj8ibyg",
"scroll": "{\u0026quot;startId\u0026quot;:\u0026quot;20210104090909-6pyfjgx\u0026quot;,\u0026quot;endId\u0026quot;:\u0026quot;20210104090909-20f2hvi\u0026quot;,\u0026quot;scrollTop\u0026quot;:0,\u0026quot;focusId\u0026quot;:\u0026quot;20221025092410-jsrv6gc\u0026quot;,\u0026quot;focusStart\u0026quot;:0,\u0026quot;focusEnd\u0026quot;:0}",
"title": "在浏览器上使用",
"type": "doc",
"updated": "20221025093126"

View file

@ -5,7 +5,8 @@
"Properties": {
"id": "20210110175347-2xrwoiq",
"title": "日记",
"type": "doc"
"type": "doc",
"updated": "20210110175347"
},
"Children": [
{

View file

@ -5,7 +5,7 @@
"Properties": {
"id": "20230106101434-e6g4av3",
"title": "工作空间",
"updated": "20230107212338"
"updated": "20230109113910"
},
"Children": [
{
@ -104,75 +104,125 @@
]
},
{
"ID": "20230106104300-j6nj9t2",
"Type": "NodeParagraph",
"ID": "20230109113547-eg7zbrh",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20230106104300-j6nj9t2",
"updated": "20230106104350"
"id": "20230109113547-eg7zbrh",
"updated": "20230109113551"
},
"Children": [
{
"Type": "NodeText",
"Data": "我们可以在 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "设置"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "关于"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "工作空间"
},
{
"Type": "NodeText",
"Data": " 中切换工作空间,桌面端支持同时打开多个工作空间,移动端只能切换不同的工作空间。"
"Data": "切换工作空间"
}
]
},
{
"ID": "20230107211904-ucohfsb",
"Type": "NodeParagraph",
"ID": "20230106104300-j6nj9t2",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230107211904-ucohfsb",
"updated": "20230107212338"
"id": "20230106104300-j6nj9t2",
"updated": "20230109113910"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果你的多个工作空间需要经常启动,可以考虑为每个工作空间创建不同的启动入口并指定启动参数 "
"ID": "20230109113554-izjti9n",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230109113554-izjti9n",
"updated": "20230109113910"
},
"Children": [
{
"ID": "20230109113554-4ie5f15",
"Type": "NodeParagraph",
"Properties": {
"id": "20230109113554-4ie5f15",
"updated": "20230109113624"
},
"Children": [
{
"Type": "NodeText",
"Data": "桌面端可以在顶栏左侧下拉菜单中打开多个工作空间"
}
]
},
{
"ID": "20230109113909-5dp3vml",
"Type": "NodeParagraph",
"Properties": {
"id": "20230109113909-5dp3vml",
"updated": "20230109113910"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果你的多个工作空间需要经常启动,可以考虑为每个工作空间创建不同的启动入口并指定启动参数 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace 工作空间绝对路径"
},
{
"Type": "NodeText",
"Data": "​。比如 Windows 系统上可以复制多个快捷方式,并在每个快捷方式 - 属性 - 目标后跟随工作空间路径参数,例如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace F:\\SiYuan"
},
{
"Type": "NodeText",
"Data": "​。"
}
]
}
]
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace 工作空间绝对路径"
},
{
"Type": "NodeText",
"Data": "​。比如 Windows 系统上可以复制多个快捷方式,并在每个快捷方式 - 属性 - 目标后跟随工作空间路径参数,例如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace F:\\SiYuan"
},
{
"Type": "NodeText",
"Data": "​。"
"ID": "20230109113624-du5o3e3",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230109113624-du5o3e3",
"updated": "20230109113641"
},
"Children": [
{
"ID": "20230109113624-zjqzh5l",
"Type": "NodeParagraph",
"Properties": {
"id": "20230109113624-zjqzh5l",
"updated": "20230109113641"
},
"Children": [
{
"Type": "NodeText",
"Data": "移动端可以在右侧栏 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "关于"
},
{
"Type": "NodeText",
"Data": " 中切换不同的工作空间"
}
]
}
]
}
]
},

View file

@ -7,7 +7,7 @@
"id": "20200813093015-u6bopdt",
"title": "常见问题",
"type": "doc",
"updated": "20230106104437"
"updated": "20230109113703"
},
"Children": [
{
@ -339,7 +339,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20210428213320-fwferhb",
"updated": "20230106104437"
"updated": "20230109113703"
},
"Children": [
{
@ -355,25 +355,7 @@
},
{
"Type": "NodeText",
"Data": "文件夹下(默认位于用户家目录 Documents/SiYuan可在 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "设置"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "关于"
},
{
"Type": "NodeText",
"Data": " 中进行修改),在工作空间/data/ 文件夹下:"
"Data": "文件夹下(默认位于用户家目录/Documents/SiYuan在工作空间/data/ 文件夹下:"
}
]
},

View file

@ -6,7 +6,7 @@
"icon": "2753",
"id": "20211226115227-r1rty9v",
"title": "常見問題",
"updated": "20230106105338"
"updated": "20230109113806"
},
"Children": [
{
@ -237,7 +237,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20211226115356-fcwiy36",
"updated": "20230106105338"
"updated": "20230109113806"
},
"Children": [
{
@ -253,25 +253,7 @@
},
{
"Type": "NodeText",
"Data": "文件夾下(預設位於用戶家目錄 Documents/SiYuan可在 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "設置"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "關於"
},
{
"Type": "NodeText",
"Data": " 中進行修改),在工作空間/data/ 文件夾下:"
"Data": "文件夾下(預設位於用戶家目錄/Documents/SiYuan在工作空間/data/ 文件夾下:"
}
]
},

View file

@ -5,7 +5,6 @@
"Properties": {
"icon": "1f389",
"id": "20211226115423-d5z1joq",
"scroll": "{\u0026quot;startId\u0026quot;:\u0026quot;20211226115745-mwqouic\u0026quot;,\u0026quot;endId\u0026quot;:\u0026quot;20211226115803-fcyr6ye\u0026quot;,\u0026quot;scrollTop\u0026quot;:0,\u0026quot;focusId\u0026quot;:\u0026quot;20211226115745-mwqouic\u0026quot;,\u0026quot;focusStart\u0026quot;:0,\u0026quot;focusEnd\u0026quot;:0}",
"title": "請從這裡開始",
"title-img": "background-color:#556;background-image: linear-gradient(30deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),linear-gradient(150deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),linear-gradient(30deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),linear-gradient(150deg, #445 12%, transparent 12.5%, transparent 87%, #445 87.5%, #445),linear-gradient(60deg, #99a 25%, transparent 25.5%, transparent 75%, #99a 75%, #99a),linear-gradient(60deg, #99a 25%, transparent 25.5%, transparent 75%, #99a 75%, #99a);background-size:80px 140px;background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;",
"updated": "20211226115745"

View file

@ -4,7 +4,6 @@
"Type": "NodeDocument",
"Properties": {
"id": "20211226122523-rl8356a",
"scroll": "{\u0026quot;startId\u0026quot;:\u0026quot;20211226122545-a65v8e1\u0026quot;,\u0026quot;endId\u0026quot;:\u0026quot;20211226122545-psqbx03\u0026quot;,\u0026quot;scrollTop\u0026quot;:0,\u0026quot;focusId\u0026quot;:\u0026quot;20221025093315-v89zg6i\u0026quot;,\u0026quot;focusStart\u0026quot;:27,\u0026quot;focusEnd\u0026quot;:27}",
"title": "在瀏覽器上使用",
"updated": "20221025093344"
},

View file

@ -4,9 +4,8 @@
"Type": "NodeDocument",
"Properties": {
"id": "20230106104645-o838uew",
"scroll": "{\u0026quot;startId\u0026quot;:\u0026quot;20230106104714-um1pzdl\u0026quot;,\u0026quot;endId\u0026quot;:\u0026quot;20230106104714-yyezfpg\u0026quot;,\u0026quot;scrollTop\u0026quot;:0,\u0026quot;focusId\u0026quot;:\u0026quot;20230107212432-mkgsqbz\u0026quot;,\u0026quot;focusStart\u0026quot;:150,\u0026quot;focusEnd\u0026quot;:150}",
"title": "工作空間",
"updated": "20230107212432"
"updated": "20230109113941"
},
"Children": [
{
@ -106,75 +105,125 @@
]
},
{
"ID": "20230106104714-rujbhlc",
"Type": "NodeParagraph",
"ID": "20230109113932-sal9xjf",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20230106104714-rujbhlc",
"updated": "20230106104735"
"id": "20230109113932-sal9xjf",
"updated": "20230109113932"
},
"Children": [
{
"Type": "NodeText",
"Data": "我們可以在 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "設置"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "關於"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "工作空間"
},
{
"Type": "NodeText",
"Data": " 中切換工作空間,桌面端支持同時打開多個工作空間,移動端只能切換不同的工作空間。"
"Data": "切換工作空間"
}
]
},
{
"ID": "20230107212432-mkgsqbz",
"Type": "NodeParagraph",
"ID": "20230109113932-3g0ywic",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230107212432-mkgsqbz",
"updated": "20230107212432"
"id": "20230109113932-3g0ywic",
"updated": "20230109113941"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果你的多個工作空間需要經常啟動,可以考慮為每個工作空間創建不同的啟動入口並指定啟動參數 "
"ID": "20230109113932-w8e5hz3",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230109113932-w8e5hz3",
"updated": "20230109113932"
},
"Children": [
{
"ID": "20230109113932-id1bb5p",
"Type": "NodeParagraph",
"Properties": {
"id": "20230109113932-id1bb5p",
"updated": "20230109113932"
},
"Children": [
{
"Type": "NodeText",
"Data": "桌面端可以在頂欄左側下拉菜單中打開多個工作空間"
}
]
},
{
"ID": "20230109113932-8g1zoun",
"Type": "NodeParagraph",
"Properties": {
"id": "20230109113932-8g1zoun",
"updated": "20230109113932"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果你的多個工作空間需要經常啟動,可以考慮為每個工作空間創建不同的啟動入口並指定啟動參數 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace 工作空間絕對路徑"
},
{
"Type": "NodeText",
"Data": "​。比如 Windows 系統上可以復制多個快捷方式,並在每個快捷方式 - 屬性 - 目標後跟隨工作空間路徑參數,例如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace F:\\SiYuan"
},
{
"Type": "NodeText",
"Data": "​。"
}
]
}
]
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace 工作空間絕對路徑"
},
{
"Type": "NodeText",
"Data": "​。比如 Windows 系統上可以復制多個快捷方式,並在每個快捷方式 - 屬性 - 目標後跟隨工作空間路徑參數,例如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace F:\\SiYuan"
},
{
"Type": "NodeText",
"Data": "​。"
"ID": "20230109113932-81uif34",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230109113932-81uif34",
"updated": "20230109113941"
},
"Children": [
{
"ID": "20230109113932-y9uqtyl",
"Type": "NodeParagraph",
"Properties": {
"id": "20230109113932-y9uqtyl",
"updated": "20230109113941"
},
"Children": [
{
"Type": "NodeText",
"Data": "移動端可以在右側欄 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "關於"
},
{
"Type": "NodeText",
"Data": " 中切換不同的工作空間"
}
]
}
]
}
]
},