Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在VNote笔记目录下添加.md文件后,在VNote导航面板对应节点上选择菜单“重新加载”,导航节点上可以刷新出新文件,但实际vx.json未更新,无法导出 #2575

Open
tyysoft opened this issue Dec 22, 2024 · 4 comments

Comments

@tyysoft
Copy link

tyysoft commented Dec 22, 2024

问题描述:
将.md文件拷贝到VNote笔记对应的文件夹,在VNote导航面板上使用菜单“重新加载”,导航节点正常出现新加文件,但是导出该目录时,新添加的文件丢失,经查,目录下的vx.json未添加新文件

测试步骤
Steps to reproduce the behavior:

  1. 在VNote导航面板下选中目录节点,并选择右键菜单“打开路径”
  2. 将其他途径编写的.md文件拷贝到新打开的目录
  3. 返回VNote导航面板,并选中步骤1中的目录节点,选择右键菜单“重新加载”
  4. 目录节点下正常刷新,且添加了拷贝到目录的文件
  5. 在VNote导航面板选中该目录节点,单击工具栏的“导出”按钮,“源”设置为“当前文件夹”,目标格式选择“HTML”
  6. 导出完成后,检查导出目录,发现未导出任何文件,且导出日志显示“>>> 已导出 0 个文件”

期望结果
成功导出目录下的所有文件节点,且目标格式为html文件。

Screenshots
image

Desktop (please complete the following information):
测试环境
OS:Microsoft Windows 10 Professional (x64) Build 19045.3570 (22H2)
CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
内存:16G DDR4
硬盘:NVMe (PCle x4 8.0 GT/s @ x4 8.0 GT/s) 1T
屏幕分辨率: 3000 x 2000
VNote 3.18.2

Additional context
问题原因:在目录节点上单击右键菜单“重新加载”后, 在目录下的vx.json文件没有更新,files数组为空,如下图所示

{
    "created_time": "2024-12-22T13:08:14Z",
    "files": [
    ],
    "folders": [
    ],
    "id": "933",
    "modified_time": "2024-12-22T13:08:14Z",
    "signature": "15850976578883817278",
    "version": 3
}

修改建议:
在目录节点上右键菜单“重新加载”时,刷新对应目录下的vx.json文件。

@tyysoft
Copy link
Author

tyysoft commented Dec 22, 2024

image

@tamlok
Copy link
Member

tamlok commented Dec 23, 2024

VNote的笔记本区分内部文件和外部文件,需要右键导入到索引才行:

image

@tyysoft
Copy link
Author

tyysoft commented Dec 23, 2024 via email

@tamlok
Copy link
Member

tamlok commented Dec 27, 2024

双击外部文件会自动导入。

重新加载是指重新读取json文件的索引。

后面会考虑一下怎么让外部文件和索引文件更融洽和提高互操作性。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants