Skip to content

如何禁止重启软件或重建索引后标签页变为预览状态? #14072

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
realysy opened this issue Feb 13, 2025 · 3 comments
Closed

Comments

@realysy
Copy link

realysy commented Feb 13, 2025

In what scenarios do you need this feature?

标签页的预览状态如下图,“测试2”处于预览状态,此时标签页的header字体为斜体、在左侧文档树点击查看其他标签页时会在当前标签打开:

图片.png

如何(能否)在思源笔记的设置中修改软件行为,避免在重启软件或重建索引后 之前打开的所有标签页变为预览状态

谢谢!!

Describe the optimal solution

在软件的设置中增加一个开关选项“启动或重建索引后所有页签设为预览模式”,如下图:

Image

Describe the candidate solution

No response

Other information

VSCode中有类似行为,可在其设置中通过如下选项修改:

图片.png

@emptylight370
Copy link
Contributor

可以关闭上面的在当前页签中打开开关,然后设置文档超过多少个之后自动关闭。
双击预览页签可以在不编辑的情况下保留页签

@realysy
Copy link
Author

realysy commented Feb 13, 2025

不是一样的效果。

“在当前页签中打开”相当于预览模式的总开关,而这个issue需要的是在软件启动后的正常使用中开启这个功能,这样方便浏览其他标签页而不用打开新标签;同时不要在软件重启或重建索引后自动将标签页置为预览状态。

@88250
Copy link
Member

88250 commented Feb 17, 2025

标签的预览状态是保存在内存变量中的,刷新界面后会丢失,所以目前做不到。

暂时关闭 issue 了,后面如果需要的人多我们再考虑,感谢反馈。

@88250 88250 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 17, 2025
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

3 participants