@aomao/plugin-hr

Split line plugin

Installation

$ yarn add @aomao/plugin-hr

Add to engine

import Engine, {EngineInterface} from'@aomao/engine';
import Hr, {HrComponent} from'@aomao/plugin-hr';
new Engine(...,{ plugins:[Hr], cards:[HrComponent]})

Optional

Hotkey

Default shortcut key mod+shift+e

hotkey?:string;//default mod+shift+e
//Use configuration
new Engine(...,{
config:{
"hr":{
//Modify shortcut keys
hotkey: "shortcut key"
}
}
})

Command

//Can carry two parameters, language type, default text, all are optional
engine.command.execute('hr');