Skip to content

Remove outline, backlink and graph from floating window document menu #9341

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
3 tasks done
frostime opened this issue Oct 4, 2023 · 14 comments
Closed
3 tasks done
Assignees
Milestone

Comments

@frostime
Copy link
Contributor

frostime commented Oct 4, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

在悬浮窗口中,点击块菜单后,第3~6个按钮点击后无反应

image

控制台报错为 undefined 错误

image

Expected result

修复错误,让这三个按钮在悬浮窗口中也能使用

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.10.8
- Operating System: win10
- Browser (if used): no

Log file

More information

No response

@Vanessa219
Copy link
Member

大纲等在悬浮窗上没有面板,无法打开,只能移除。

@Vanessa219 Vanessa219 self-assigned this Oct 5, 2023
Vanessa219 added a commit that referenced this issue Oct 5, 2023
@Vanessa219 Vanessa219 added this to the 2.10.9 milestone Oct 5, 2023
@Vanessa219 Vanessa219 changed the title 悬浮窗口内,块菜单中「大纲」「反向链接」「关系图」三个按钮无效 Remove outline, backlink and graph from floating window document menu Oct 5, 2023
@frostime
Copy link
Contributor Author

frostime commented Oct 5, 2023

大纲等在悬浮窗上没有面板,无法打开,只能移除。

大纲无所谓,但是后面两个反向链接和关系图是在思源当中打开一个新的标签页的啊,文档在悬浮窗口中应该不影响新建一个标签页吧?

image

@88250
Copy link
Member

88250 commented Oct 5, 2023

都是面板,不是页签。

@frostime
Copy link
Contributor Author

frostime commented Oct 5, 2023

都是面板,不是页签。

这个不是 Tab 页嘛?🤨

image

@88250
Copy link
Member

88250 commented Oct 5, 2023

@Vanessa219 到底是不是页签 😂

@Vanessa219
Copy link
Member

以为是要在浮窗上面打开大纲、反链、关系图页签。在主窗口打开的话会被浮窗遮住,也不太好看吧。

@frostime
Copy link
Contributor Author

frostime commented Oct 6, 2023

以为是要在浮窗上面打开大纲、反链、关系图页签。在主窗口打开的话会被浮窗遮住,也不太好看吧。

这个好不好看也无所谓,但是实用啊(起码对我来说)。常见的使用场景比如:

我在文档中引用了一个主题 def block X,现在我想要快速查看主题 X 的相关反链作为参考,这时候就可以在悬浮窗内快速打开反链面板。

目的和 shift + 鼠标悬浮在引用上相同,都是为了快速查看一个特定的 def block 所有的相关反链块——但是shift 悬浮呼出的窗口太狭窄了,并不适合阅读,而如果用正规的反链标签页来查看体验会好很多。


并且本来原本在文档中点击「反链」「关系图」的按钮也是打开一个新的 tab 标签页,这个行为是一致的。

@frostime
Copy link
Contributor Author

frostime commented Oct 7, 2023

以为是要在浮窗上面打开大纲、反链、关系图页签。在主窗口打开的话会被浮窗遮住,也不太好看吧。

这个好不好看也无所谓,但是实用啊(起码对我来说)。常见的使用场景比如:

我在文档中引用了一个主题 def block X,现在我想要快速查看主题 X 的相关反链作为参考,这时候就可以在悬浮窗内快速打开反链面板。

目的和 shift + 鼠标悬浮在引用上相同,都是为了快速查看一个特定的 def block 所有的相关反链块——但是shift 悬浮呼出的窗口太狭窄了,并不适合阅读,而如果用正规的反链标签页来查看体验会好很多。

并且本来原本在文档中点击「反链」「关系图」的按钮也是打开一个新的 tab 标签页,这个行为是一致的。

自顶,不知道 @Vanessa219 能否考虑一下。

@Vanessa219
Copy link
Member

Vanessa219 commented Oct 8, 2023

浮窗大部分情况下只是用来预览和进行简单的修改,因此窗口大小会受到限制,如果再在上面加一个反链页签会更加拥挤。需要查看的话可以固定打开反链面板,然后点击引用,反链面板就会自动刷新为需要查看的内容了。

@frostime
Copy link
Contributor Author

frostime commented Oct 8, 2023

浮窗大部分情况下只是用来预览和进行简单的修改,因此窗口大小会受到限制,如果再在上面加一个反链页签会更加拥挤。需要查看的话可以固定打开反链面板,然后点击引用,反链面板就会自动刷新为需要查看的内容了。

我说的不是在 FloatWindow 当中打开新的页签啊,就是在正常的编辑器里打开一个页签,就和点击文档图标选择「反向链接」打开一个新的页签一样的行为。


而且反链面板的问题在于他是不固定的,会随着文档的跳转自动刷新。就算我点击引用在反链面板当中查看,一个不小心切换到别的文档可能反链面板的内容就变了。所以还是固定的反链标签页体验更好一些。

或者换一个思路,能否给反链面板加一个按钮,将对应的内容在一个新的标签页当中打开(固定下来)?

@Vanessa219
Copy link
Member

上面提到过打开后会被悬浮窗遮挡,这样也没关系么?

@frostime
Copy link
Contributor Author

frostime commented Oct 9, 2023

上面提到过打开后会被悬浮窗遮挡,这样也没关系么?

这个 issue 中我谈论的核心目的,其实就是「为了能够更加方便快速的打开一个链接的反链内容」(shift + 悬浮并不好用),被遮挡问题也不大。


其实,「为了能够更加方便快速的打开一个链接的反链内容」,我此前还想过在双链引用的右键menu当中增加按钮,可以快速打开对应引用对象的反链页签。

image

但是后来想到反链页签是以文档为单位的,而引用则不限制块的类型,所以才放弃了这个想法——这次在这个 issue 里顺便把这个想法也提出来,看 V 如何考量。

@Vanessa219
Copy link
Member

嗯嗯,反链面板会根据聚焦进行过滤,这样感觉可以更好的满足需求。

那么在引用的右键菜单上加一个“打开反向链接”,这样是不是就可以了?

@frostime
Copy link
Contributor Author

frostime commented Oct 9, 2023

嗯嗯,反链面板会根据聚焦进行过滤,这样感觉可以更好的满足需求。

那么在引用的右键菜单上加一个“打开反向链接”,这样是不是就可以了?

这样也可以!(另外关系图也能加上去吗?)

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