Index

Functions

execute_ex_on_x

  • execute_ex_on_x(args_only: boolean, cmdline_state: any, excmd: string): Promise<any>

getCommandlineFns

  • getCommandlineFns(cmdline_state: { fns: ReturnType<typeof getCommandlineFns> }): { 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_or_completion: any; is_valid_commandline: any; next_completion: any; next_history: any; prev_completion: any; prev_history: any; store_ex_string: any }
  • Parameters

    Returns { 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_or_completion: any; is_valid_commandline: any; next_completion: any; next_history: any; prev_completion: any; prev_history: any; store_ex_string: any }

    • 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_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(): void
    • next_history: function
      • next_history(): any
    • prev_completion: function
      • prev_completion(): 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