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

文件历史支持比较 #11601

Open
1 task
TCOTC opened this issue May 31, 2024 · 9 comments
Open
1 task

文件历史支持比较 #11601

TCOTC opened this issue May 31, 2024 · 9 comments

Comments

@TCOTC
Copy link
Contributor

TCOTC commented May 31, 2024

文件历史支持比较

两个入口:

  • 数据历史 - 文件历史
  • 文档树 - 文档右键菜单 - 文件历史

功能:

  • 比较选中的文档与其历史文档
  • 选中的文档的历史文档之间的比较
  • 突出显示差异:如果做不了字符级的比较,可以粗略一点,通过块 ID 判断哪些是新增/移除的、通过块的更新时间判断哪些块有更新,能定位到这些块就行

窗口:

  • 左右分屏比较
  • 上下分屏比较

https://ld246.com/article/1717137644553

@jiaoting
Copy link

同求~~~

@TCOTC TCOTC changed the title 文件历史支持比较 ✨文件历史支持比较 Aug 10, 2024
@88250 88250 changed the title ✨文件历史支持比较 文件历史支持比较 Aug 11, 2024
@88250
Copy link
Member

88250 commented Nov 17, 2024

无法实现 tree diff 算法

@88250 88250 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Nov 17, 2024

不需要突出差异,只是要并排显示用来比较

@88250 88250 reopened this Nov 17, 2024
@HoollyFox
Copy link

有一款插件可以实现对比:

siyuan-plugin-diff

但是只能对现有文档而非历史文档进行对比,希望能在历史文档里面实现对比

@TCOTC
Copy link
Contributor Author

TCOTC commented Jan 9, 2025

@Achuan-2
Copy link
Member

Achuan-2 commented Jan 9, 2025

参考https://github.com/Zuoqiu-Yingyi/siyuan-plugin-monaco-editor
直接用Monaco Editor来对markdown源码进行比较

@Muko-Tabi
Copy link

Would love to see this feature, as well, make it easier to review changes. The best reference for this I think would be Git itself. Obsidian File History also implemented similar to Git.

也很想看到这个功能,这样可以更容易地查看变更。我认为最好的参考是Git本身。Obsidian文件历史功能的实现也类似于Git。

@m2uyo
Copy link

m2uyo commented Mar 24, 2025

参考https://github.com/Zuoqiu-Yingyi/siyuan-plugin-monaco-editor 直接用Monaco Editor来对markdown源码进行比较

感觉这个也可以, 个人需求就是知道数据历史到底跟当前哪里有区别

@Achuan-2
Copy link
Member

utools有一个vs插件,可以对比word、pdf、ppt、图片、xlsx文件差异

Image

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

7 participants