Closed jostylr closed 7 years ago
Never mind. It does import commands. Need to update docs. Still might prefer an import option. Could Object.create parent commands for doc to enable global vs. local. Could easily add the key file/cmd to global.
related to this are the scopes. they currently seem to be global, but having local aliasing ought to be nice to. again object.create could be used on the scopes. Maybe commands can be defined on the scopes as well and a reference for them defined (colon syntax)
Not interested in pursuing this. it is probably possible to do local commands by direct manipulation, but I think it is confusing. Use command names such as fileA-wreck-this
if you must.
Commands are defined only in the local document. This needs to be reconsidered. Suggest an import option, say on the load. It could merge in any currently define commands and then listen for any future defined ones. Or one could access it by scopes such as file/cmd