Skip to content

The interface will no longer be refreshed after find-replace #11844

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

Closed
TCOTC opened this issue Jun 27, 2024 · 10 comments
Closed

The interface will no longer be refreshed after find-replace #11844

TCOTC opened this issue Jun 27, 2024 · 10 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Jun 27, 2024

替换文本后不重新加载界面

https://ld246.com/article/1719478251222 第一点

@yutianxhs25
Copy link

这个必须改进啊。刷新背后的逻辑是什么?为什么要刷新?难不成改了文件名要刷新?

@88250
Copy link
Member

88250 commented Jun 30, 2024 via email

@yutianxhs25
Copy link

因为思源支持多窗口,为了保证一致性所以目前必须刷新。后续如果能改进的我我们尽量想办法,谢谢。

---原始邮件--- 发件人: @.> 发送时间: 2024年6月30日(周日) 晚上9:57 收件人: @.>; 抄送: @.>; 主题: Re: [siyuan-note/siyuan] 替换文本后不重新加载界面 (Issue #11844) 这个必须改进啊。刷新背后的逻辑是什么?为什么要刷新?难不成改了文件名要刷新? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

然而,不应该、没有理由合上文档树啊。
最好是不刷新,就像word、typora那样。
如果不得不刷新的话,刷新之前,应当记录下文档树的展开状态,刷新完毕后再回复文档树的状态吧。

@88250
Copy link
Member

88250 commented Jun 30, 2024

@yutianxhs25 你说的没错,之前已经有提议需要保留文档树展开状态 #10652 后面尽量考虑,谢谢。

@88250
Copy link
Member

88250 commented Jun 30, 2024

这个 issue 我们先关闭了,感谢提议和讨论。

@88250 88250 closed this as completed Jun 30, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Jun 30, 2024

因为思源支持多窗口,为了保证一致性所以目前必须刷新。

这个没法判断吗?如果替换的文档只打开了一个页签,那就只刷新那一个页签就够了(或者说多页签也应该可以单独刷新受影响的页签)

@88250
Copy link
Member

88250 commented Jun 30, 2024 via email

@TCOTC
Copy link
Contributor Author

TCOTC commented Jul 27, 2024

@88250 我发现单个文档打开多页签多窗口时,编辑内容块、拖动大纲、通过 API 插入块都是可以直接同步不用重载的,为什么替换文本就需要重载?

@TCOTC
Copy link
Contributor Author

TCOTC commented Sep 8, 2024

@88250

@88250 88250 self-assigned this Sep 8, 2024
@88250
Copy link
Member

88250 commented Sep 8, 2024

似乎有办法了,稍后改进看看。

@88250 88250 added this to the 3.1.6 milestone Sep 8, 2024
@88250 88250 changed the title 替换文本后不重新加载界面 The interface will no longer be refreshed after find-replace Sep 8, 2024
88250 added a commit that referenced this issue Sep 8, 2024

Verified

This commit was signed with the committer’s verified signature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants