Skip to content

Add plugin function globalCommand #14499

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
wish5115 opened this issue Apr 2, 2025 · 0 comments
Closed

Add plugin function globalCommand #14499

wish5115 opened this issue Apr 2, 2025 · 0 comments
Assignees
Milestone

Comments

@wish5115
Copy link

wish5115 commented Apr 2, 2025

In what scenarios do you need this feature?

Image

如图,我想让这些命令可以通过data-command就能在外部直接调用执行

Image

比如 window.siyuan.command.exeCommand('addToDatabase') 或者通过其他办法执行也行

Describe the optimal solution

Describe the candidate solution

No response

Other information

No response

@Vanessa219 Vanessa219 changed the title 建议把命令面板对象放到window.siyuan中或暴露命令执行入口 添加全局命令 globalCommand Apr 2, 2025
@Vanessa219 Vanessa219 self-assigned this Apr 2, 2025
@Vanessa219 Vanessa219 added this to the 3.1.27 milestone Apr 2, 2025
Vanessa219 added a commit to siyuan-note/petal that referenced this issue Apr 2, 2025
@Vanessa219 Vanessa219 changed the title 添加全局命令 globalCommand Add plugin function globalCommand Apr 2, 2025
Vanessa219 added a commit to siyuan-note/petal that referenced this issue Apr 2, 2025
Vanessa219 added a commit that referenced this issue Apr 2, 2025
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