Skip to content

Add internal kernel API /api/setting/refreshVirtualBlockRef #9829

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
Wetoria opened this issue Dec 6, 2023 · 6 comments
Closed

Add internal kernel API /api/setting/refreshVirtualBlockRef #9829

Wetoria opened this issue Dec 6, 2023 · 6 comments
Assignees
Milestone

Comments

@Wetoria
Copy link

Wetoria commented Dec 6, 2023

Does VirtualRef job time can become a config?

In what scenarios do you need this feature?

在阅读场景下,新接触的词汇,希望虚拟引用能够及时生效,而不是可能 10 分钟后才能看到。

Describe the optimal solution

提供一个按钮,或者是一个快捷键,能够让用户自动选择刷新虚拟引用的缓存。

Describe the candidate solution

将虚拟引用的 job 时间,改成一个可以配置的选项。

Other information

目前虚拟引用的 job 是固定的 10 分钟。虽然是有性能方面的考虑,但是对于我这样电脑还过得去的用户来说,10 分钟的时间太久了。

两种方式,我更倾向于在我选择词汇创建完双链以后,使用快捷键能够立马刷新当前文档的虚拟引用,这样在后续阅读的时候,可以及时得到提示。

@frostime
Copy link
Contributor

frostime commented Dec 6, 2023

资瓷一下

@muhanstudio
Copy link

支持一下,对学习会有帮助

@zuoez02
Copy link
Contributor

zuoez02 commented Dec 6, 2023

资瓷一下

@88250 88250 self-assigned this Dec 6, 2023
@88250 88250 added this to the 2.11.2 milestone Dec 6, 2023
@88250
Copy link
Member

88250 commented Dec 6, 2023

我们提供一个用于刷新虚拟引用的 API 吧,界面不考虑了,请社区开发者制作插件,感谢。

@88250 88250 changed the title Does VirtualRef job time can become a config? Add internal kenerl API /api/setting/refreshVirtualBlockRef Dec 6, 2023
@88250 88250 changed the title Add internal kenerl API /api/setting/refreshVirtualBlockRef Add internal kernel API /api/setting/refreshVirtualBlockRef Dec 6, 2023
@Wetoria
Copy link
Author

Wetoria commented Dec 6, 2023

我们提供一个用于刷新虚拟引用的 API 吧,界面不考虑了,请社区开发者制作插件,感谢。

这个方案也行。我也考虑过自己加,但是目前在思源主体上的开发经验还不够,所以没有提交 PR。

D大你们怎么方便怎么来吧。

@IAliceBobI
Copy link

这个好啊,配合命令面板,刷起。

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

6 participants