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