Underline style plugin
$ yarn add @aomao/plugin-underline
Add to engine
import Engine, {EngineInterface} from'@aomao/engine';import Underline from'@aomao/plugin-underline';new Engine(...,{ plugins:[Underline] })
The default shortcut key is mod+u
, and multiple shortcut keys are passed in as an array
//hotkey,hotkey?: string | Array<string>;//Use configurationnew Engine(...,{config:{"underline":{//Modify shortcut keyshotkey: "shortcut key"}}})
engine.command.execute('underline');//Use command to execute query current status, return boolean | undefinedengine.command.queryState('underline');