Index

Type aliases

Variables

Type aliases

ArgumentsType

ArgumentsType<T>: T extends (...args: infer U) => any ? U : never

Type parameters

  • T

ft

ft: typeof functions

Variables

Const CmdlineCmds

CmdlineCmds: {} = new Proxy(functions as any, {get(target, property) {if (target[property]) {return (...args) =>messageActiveTab("commandline_cmd", property as string, args)}return target[property]},}) as {[k in keyof ft]: (...args: ArgumentsType<ft[k]>) => Promise<ReturnType<ft[k]>>}

Type declaration

Const functions

functions: { accept_line: any; complete: any; copy_completion: any; deselect_completion: any; execute_ex_on_completion: any; execute_ex_on_completion_args: any; hide_and_clear: any; insert_completion: any; insert_space: any; insert_space_or_completion: any; is_valid_commandline: any; next_completion: any; next_history: any; prev_completion: any; prev_history: any; store_ex_string: any } = getCommandlineFns({} as any)

Type declaration

  • accept_line: function
    • accept_line(): Promise<any>
  • complete: function
    • complete(): Promise<any>
    • Insert the first command line history line that starts with the content of the command line in the command line.

      Returns Promise<any>

  • copy_completion: function
    • copy_completion(): Promise<any>
  • deselect_completion: function
    • deselect_completion(): void
  • execute_ex_on_completion: function
    • execute_ex_on_completion(excmd: string): Promise<any>
  • execute_ex_on_completion_args: function
    • execute_ex_on_completion_args(excmd: string): Promise<any>
  • hide_and_clear: function
    • hide_and_clear(): void
  • insert_completion: function
    • insert_completion(): Promise<any[]>
  • insert_space: function
    • insert_space(): void
  • insert_space_or_completion: function
    • insert_space_or_completion(): any
    • If a completion is selected, inserts it in the command line with a space. If no completion is selected, inserts a space where the caret is.

      Returns any

  • is_valid_commandline: function
    • is_valid_commandline(command: string): boolean
  • next_completion: function
    • next_completion(): Promise<void>
  • next_history: function
    • next_history(): any
  • prev_completion: function
    • prev_completion(): Promise<void>
  • prev_history: function
    • prev_history(): any
  • store_ex_string: function
    • store_ex_string(command: string): void
    • Save non-secret commands to the cmdHistory and update the cmdline_history_position

      Parameters

      • command: string

      Returns void