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

The right-click menu of the bookmark panel adds functions such as Copy block ref #8082

Closed
frostime opened this issue Apr 22, 2023 · 0 comments
Assignees
Milestone

Comments

@frostime
Copy link
Contributor

frostime commented Apr 22, 2023

书签面板的右键菜单增加 复制该块为引用块 等功能

In what scenarios do you need this feature?

思源的「书签」功能虽然看上去可以直接被双链替代,但是他有一点好处:可以不需要打开文档,在任意面板都可以呼出。所以我常常用书签存放代办事项相关的块,比如有一个笔记块没写完,可以先放在书签里,下次想起来了直接呼出来接着写。

而且不同于标签,书签对于正文的侵入性极小,而且功能逻辑很简洁,在双链之外有自己的额外价值。


但是书签列表项的功能支持还是有点贫乏,点击打开块没问题,但是右键 contextmenu 只有一个删除选项,感觉有点单薄。

image

书签里的块也是块,虽然没有必要如文档中的块一样支持各种功能,但是我觉得基本的复制功能还是可以加上去的:

  • 复制块 ID
  • 复制引用块
  • 复制嵌入块

image

Describe the optimal solution

我对思源内部源码不太清楚,但是根据 DOM 定义来看,相关的信息已经十分完备。添加「复制ID,引用块等」 理论上应该不难。

image

Describe the candidate solution

No response

Other information

No response

@88250 88250 changed the title 增强书签功能:书签面板的 contextmenu 增加「复制引用块」等其他功能 增强书签功能:书签面板的右键菜单增加「复制引用块」等功能 Apr 22, 2023
@88250 88250 changed the title 增强书签功能:书签面板的右键菜单增加「复制引用块」等功能 书签面板的右键菜单增加「复制引用块」等功能 Apr 22, 2023
@88250 88250 changed the title 书签面板的右键菜单增加「复制引用块」等功能 书签面板的右键菜单增加 复制该块为引用块 等功能 Apr 22, 2023
@88250 88250 changed the title 书签面板的右键菜单增加 复制该块为引用块 等功能 The right-click menu of the bookmark panel adds functions such as Copy block ref Apr 22, 2023
@88250 88250 added this to the 2.8.6 milestone Apr 22, 2023
Vanessa219 added a commit that referenced this issue Apr 23, 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