Redo history plugin
$ yarn add @aomao/plugin-redo
Add to engine
import Engine, {EngineInterface} from'@aomao/engine';import Redo from'@aomao/plugin-redo';new Engine(...,{ plugins:[Redo] })
The default shortcut key is mod+y
shift+mod+y
//hotkeyhotkey?: string | Array<string>;//Use configurationnew Engine(...,{config:{"redo":{//Modify shortcut keyshotkey: "shortcut key"}}})
//Use command to execute the plugin and pass in the required parametersengine.command.execute('redo');//Use command to execute query current status, return boolean | undefinedengine.command.queryState('redo');