Index

Type aliases

Variables

Type aliases

ArgumentsType

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

Type parameters

  • T

ft

ft: { accept_line: any; complete: any; deselect_completion: any; hide_and_clear: any; insert_completion: any; insert_space_or_completion: any; next_completion: any; next_history: any; prev_completion: any; prev_history: any }

Type declaration

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

      Returns any

  • deselect_completion: function
    • deselect_completion(): void
  • hide_and_clear: function
    • hide_and_clear(): void
  • insert_completion: function
    • insert_completion(): Promise<any[]>
  • 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

  • next_completion: function
    • next_completion(): void
  • next_history: function
    • next_history(): any
  • prev_completion: function
    • prev_completion(): void
  • prev_history: function
    • prev_history(): any

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; deselect_completion: any; hide_and_clear: any; insert_completion: any; insert_space_or_completion: any; next_completion: any; next_history: any; prev_completion: any; prev_history: any } = getCommandlineFns({} as any)

Type declaration

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

      Returns any

  • deselect_completion: function
    • deselect_completion(): void
  • hide_and_clear: function
    • hide_and_clear(): void
  • insert_completion: function
    • insert_completion(): Promise<any[]>
  • 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

  • next_completion: function
    • next_completion(): void
  • next_history: function
    • next_history(): any
  • prev_completion: function
    • prev_completion(): void
  • prev_history: function
    • prev_history(): any