Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

希望可以自动检测文件被其他软件编辑和保存

Open 17Archangel opened this issue 3 months ago • 2 comments

What problem would this solve?

开发者您好,有时候我会用markpad和vscode等软件同时对md文档进行编辑,用vscode编辑并保存后,markpad不会立刻自动检测文件是否被修改,只能通过切换编辑模式,才会显示修改后的文档。

What would you like?

希望其他软件修改并保存文档后,markpad能及时通知“文件已被更新,是否加载”,或者直接显示新的文档。

What have you tried instead?

No response

17Archangel avatar Aug 21 '26 16:08 17Archangel

我现在看一下,因为这个可能涉及到监听与轮询,比较吃进程。我们目前有刷新按钮,你可以试试。

PathGao avatar Aug 21 '26 16:08 PathGao

这里面的行为有点复杂,预览模式一直有自动重载功能,在右上角按钮。但是编辑模式/分屏模式如果加了自动重载,就会有写入冲突的考量。我这次尽量处理掉。具体结果你看之后关联pr吧

PathGao avatar Aug 21 '26 17:08 PathGao