MCPcopy Create free account
hub / github.com/boltex/leojs / createCommonCommand

Method createCommonCommand

src/core/mod_scripting.ts:939–959  ·  view source on GitHub ↗

* Handle a single @command node. * * Important: Common @button and @command scripts now *do* update * dynamically provided that myLeoSettings.leo is open. Otherwise the * callback executes the static script. * * See https://github.com/leo-editor/leo-editor/issues/171

(p: Position, script: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

createCommonCommandsMethod · 0.95

Calls 2

getArgsMethod · 0.95
registerAllCommandsMethod · 0.95

Tested by

no test coverage detected