Vars
onEditorModeChanged: Event[tuple[editor: EditorId, oldMode: string, newMode: string]]
- Source Edit
Procs
proc addCallback(action: proc (args: JsonNode): bool): int {....raises: [], tags: [], forbids: [].}
- Source Edit
proc addCallback(action: proc (args: JsonNode): void): int {....raises: [], tags: [], forbids: [].}
- Source Edit
proc addCommand(context: string; keys: string; action: proc (): void) {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc addEditorCommand(mode: string; keys: string; action: proc (): void) {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc addModelCommand(mode: string; keys: string; action: proc (editor: ModelDocumentEditor): void) {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc addTextCommand(mode: string; keys: string; action: proc (editor: TextDocumentEditor): void) {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getLine(editor: TextDocumentEditor; line: int): string {....raises: [], tags: [], forbids: [].}
- Source Edit
proc getLineCount(editor: TextDocumentEditor): int {....raises: [], tags: [], forbids: [].}
- Source Edit
proc handleCallbackImpl(id: int; args: JsonNode): bool {. ...raises: [Exception, KeyError], tags: [RootEffect], forbids: [].}
- Source Edit
proc handleLambdaAction(args: JsonNode): bool {....raises: [Exception, KeyError], tags: [RootEffect], forbids: [].}
- Source Edit
proc handleScriptActionImpl(name: string; args: JsonNode): JsonNode {. ...raises: [Exception, KeyError], tags: [RootEffect], forbids: [].}
- Source Edit
proc insertText(editor: AnyDocumentEditor; text: string)
- Source Edit
proc removeCommand(context: string; keys: string) {....raises: [], tags: [], forbids: [].}
- Source Edit
proc runAction(editor: TextDocumentEditor; action: string; arg: string = "") {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc selection(editor: TextDocumentEditor): Selection {....raises: [], tags: [], forbids: [].}
- Source Edit
proc selection=(editor: TextDocumentEditor; selection: Selection) {....raises: [], tags: [], forbids: [].}
- Source Edit
proc selections(editor: TextDocumentEditor): seq[Selection] {....raises: [], tags: [], forbids: [].}
- Source Edit
proc selections=(editor: TextDocumentEditor; selection: seq[Selection]) {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc setModelInputHandler(context: string; action: proc ( editor: ModelDocumentEditor; input: string): bool) {....raises: [], tags: [], forbids: [].}
- Source Edit
proc setTextInputHandler(context: string; action: proc ( editor: TextDocumentEditor; input: string): bool) {....raises: [], tags: [], forbids: [].}
- Source Edit
Macros
macro addCommand(context: string; keys: string; action: string; args: varargs[untyped]): untyped
- Source Edit
macro addEditorCommand(mode: static[string]; keys: string; action: string; args: varargs[untyped]): untyped
- Source Edit
macro addModelCommand(mode: static[string]; keys: string; action: string; args: varargs[untyped]): untyped
- Source Edit
macro addTextCommand(mode: static[string]; keys: string; action: string; args: varargs[untyped]): untyped
- Source Edit
macro scriptActionWasm(name: static string; def: untyped): untyped
- Register as a script action If called in wasm then it directly runs the function If called in nimscript the script action is executed instead Source Edit
macro scriptActionWasmNims(name: static string; def: untyped): untyped
- Register as a script action If called in wasm then it directly runs the function If called in nimscript the script action. If no script action is found, runs directly in nimscript Source Edit
Templates
template addCommandBlock(context: static[string]; keys: string; body: untyped): untyped
- Source Edit
template addEditorCommandBlock(mode: static[string]; keys: string; body: untyped): untyped
- Source Edit
template addModelCommandBlock(mode: static[string]; keys: string; body: untyped): untyped
- Source Edit
template addTextCommandBlock(mode: static[string]; keys: string; body: untyped): untyped
- Source Edit
template isModelEditor(editorId: EditorId; injected: untyped): bool
- Source Edit
template isTextEditor(editorId: EditorId; injected: untyped): bool
- Source Edit
template wasmexport(t: typed): untyped
- Source Edit