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

Add open-menu-breadcrumbmore event bus to plugins #8666

Closed
WingDr opened this issue Jul 3, 2023 · 2 comments
Closed

Add open-menu-breadcrumbmore event bus to plugins #8666

WingDr opened this issue Jul 3, 2023 · 2 comments
Assignees
Milestone

Comments

@WingDr
Copy link

WingDr commented Jul 3, 2023

In what scenarios do you need this feature?

想做一个结合citation插件导出LATEX的功能,如果如果这种导出都要交给D大V姐做就太麻烦了。另外Citation插件的文档内更新引用格式的功能也是文档级的功能。

所以希望能够在这里加入一些接口,能够添加一些二级甚至三级菜单(二级菜单是插件列表,每个插件一个三级菜单?不过这样是不是太繁琐了),允许插件进行文档级的操作(只要给文档信息就行)

image
image

Describe the optimal solution

可以类似标题块的菜单一样放到eventBus里,但是这个好像本身也有一点小问题,我会单开一个issue说,但是这个形式是非常好的,不会导致api拥挤而且也可以和列表渲染结合(尽量避免对于同种类型的问题加入不同的API)

image

Describe the candidate solution

No response

Other information

No response

@Vanessa219
Copy link
Member

Vanessa219 commented Jul 5, 2023

这样是否可以

  • ...
  • 导出
  • 插件
    • citation
      • update
      • export
  • 信息

@WingDr
Copy link
Author

WingDr commented Jul 5, 2023

对对,我觉得这样就挺好的,插件本身的功能和地位不和原本你们规划好的功能冲突是最好的

@Vanessa219 Vanessa219 self-assigned this Jul 5, 2023
@Vanessa219 Vanessa219 added this to the 2.9.5 milestone Jul 5, 2023
@Vanessa219 Vanessa219 changed the title 插件的文档功能菜单和文档树功能菜单接口 Add open-menu-breadcrumbmore event bus to plugins Jul 5, 2023
Vanessa219 added a commit that referenced this issue Jul 5, 2023
Vanessa219 added a commit to siyuan-note/plugin-sample that referenced this issue Jul 5, 2023
Vanessa219 added a commit to siyuan-note/plugin-sample that referenced this issue Jul 5, 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

2 participants