diff --git a/help/PLUGIN.md b/help/PLUGIN.md index 17a4b2f7..d7141074 100644 --- a/help/PLUGIN.md +++ b/help/PLUGIN.md @@ -50,6 +50,7 @@ Yank Note has some concepts that are the basis for supporting the entire plug-in 1. Hook 1. Action +1. Command ### Hook @@ -77,10 +78,13 @@ For internal hook types, please refer to [Api Document](https://yn-api-doc.verce ### Action -Yank Note has an Action Center [`ctx.action`](https://yn-api-doc.vercel.app/modules/renderer_core_action.html), which provides action and keyboard shortcuts management and operation。 +Yank Note has an Action Center [`ctx.action`](https://yn-api-doc.vercel.app/modules/renderer_core_action.html), which provides action management and operation。 For internal action, please refer to [Api Document](https://yn-api-doc.vercel.app/modules/renderer_types.html#BuildInActions) +### Command +Yank Note has a Command Center [`ctx.command`](https://yn-api-doc.vercel.app/modules/renderer_core_command.html), which is mainly responsible for the management and operation of shortcut keys. + ## Plug-In Capabilities As you can see from the above, the functions of the plug-in are all implemented through the modules of `ctx`. diff --git a/help/PLUGIN_ZH-CN.md b/help/PLUGIN_ZH-CN.md index f54b5b1f..5da25bed 100644 --- a/help/PLUGIN_ZH-CN.md +++ b/help/PLUGIN_ZH-CN.md @@ -50,6 +50,7 @@ Yank Note 有一些概念,是支撑整个插件体系的基础: 1. Hook 钩子 1. Action 动作 +1. Command 命令 ### Hook 钩子 @@ -59,7 +60,7 @@ Yank Note 在执行一些操作的时候,会触发一些钩子调用。 调用 `triggerHook` 时候附加选项 `{ breakable: true }`,表明这个钩子调用是可中断的。 -如下面的内部钩子调用是可中断的 +下面的内部钩子调用是可中断的 - `ACTION_AFTER_RUN` - `ACTION_BEFORE_RUN` @@ -75,10 +76,14 @@ Yank Note 在执行一些操作的时候,会触发一些钩子调用。 ### Action 动作 -Yank Note 有一个 Action 中心 [`ctx.action`](https://yn-api-doc.vercel.app/modules/renderer_core_action.html),提供动作和快捷键的管理和运行。 +Yank Note 有一个 Action 中心 [`ctx.action`](https://yn-api-doc.vercel.app/modules/renderer_core_action.html),提供动作的管理和运行。 内部 Action 可以参考 [Api 文档](https://yn-api-doc.vercel.app/modules/renderer_types.html#BuildInActions) +### Command 命令 + +Yank Note 有一个 Command 中心 [`ctx.command`](https://yn-api-doc.vercel.app/modules/renderer_core_command.html),主要负责快捷键相关的管理和运行。 + ## 插件能力 从上面可以看到,插件的功能都是通过 `ctx` 下面挂载的模块来实现。 diff --git a/src/renderer/components/ActionBar.vue b/src/renderer/components/ActionBar.vue index 2ca35291..4a32813b 100644 --- a/src/renderer/components/ActionBar.vue +++ b/src/renderer/components/ActionBar.vue @@ -36,12 +36,13 @@