@aomao/plugin-orderedlist

Ordered list plugin

Installation

$ yarn add @aomao/plugin-orderedlist

Add to engine

import Engine, {EngineInterface} from'@aomao/engine';
import Orderedlist from'@aomao/plugin-orderedlist';
new Engine(...,{ plugins:[Orderedlist] })

Optional

Hotkey

Default shortcut key mod+shift+7

//hotkey
hotkey?: string | Array<string>;//default mod+shift+7
//Use configuration
new Engine(...,{
config:{
"orderedlist":{
//Modify shortcut keys
hotkey: "shortcut key"
}
}
})

Command

There is a parameter start:number which defaults to 1, which indicates the starting number of the list

//Use command to execute the plugin and pass in the required parameters
engine.command.execute('orderedlist', 1);
//Use command to execute query current status, return false or current list plugin name orderedlist tasklist unorderedlist
engine.command.queryState('orderedlist');