-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
featNew featuresNew features
Description
ui上的哪部分与此新功能有关?
No response
新功能描述
我个人倾向于在本地保存、编辑和管理所有笔记,然后选择部分笔记上传博客园。
在使用中有以下两种情况:
- 将本地笔记文件夹移动位置后,随笔关联记录的绝对路径并不会更新,需要手动重新关联
- 如果需要更换电脑,将笔记的文件夹copy到新电脑后再用vscode打开,所有随笔都需要重新关联
如果笔记量大的话,手动重新关联可能既繁琐又不准确。
[选填]建议的解决方案
- 关联的本地路径采用相对路径(相对于
cnblogsClientForVSCode.workspace
?) - 使用json存储关联(json存储位置可配置)
如有以下目录结构:
|- ~/Documents/Notes
|- other notes
|- publish
|- .vscode/
|- vscode-cnb.json
|- dir/
|- 1.md
|- 2.md
settings.json 中配置:
{
"cnblogsClientForVSCode.workspace": "~/Documents/Notes/publish",
"cnblogsClientForVSCode.relations": ".vscode/vscode-cnb.json" // 关联存储位置的相对路径
}
则关联数据的存取通过publish/.vscode/vscode-cnb.json
:
{
"relations": [
{"local": "dir/1.md", "web": "https://www.cnblogs.com/xxx/p/xxx.html"},
{"local": "2.md", "web": "https://www.cnblogs.com/xxx/p/xxx.html"},
]
}
这样只需要Notes/
文件夹在手,不怕到处移动丢失关联数据
laggage
Metadata
Metadata
Assignees
Labels
featNew featuresNew features