CmdlineCmds
CmdlineCmds: {
    accept_line: (...args: []) => Promise<Promise<any>>;
    complete: (...args: []) => Promise<Promise<any>>;
    copy_completion: (...args: []) => Promise<Promise<any>>;
    deselect_completion: (...args: []) => Promise<void>;
    execute_ex_on_all_completions: (
        ...args: [excmd: string],
    ) => Promise<Promise<any[]>>;
    execute_ex_on_completion: (
        ...args: [excmd: string],
    ) => Promise<Promise<any>>;
    execute_ex_on_completion_args: (
        ...args: [excmd: string],
    ) => Promise<Promise<any>>;
    hide_and_clear: (...args: []) => Promise<Promise<void>>;
    insert_character_or_completion: (
        ...args: [character?: string],
    ) => Promise<any>;
    insert_completion: (...args: []) => Promise<Promise<any[]>>;
    insert_space: (...args: []) => Promise<void>;
    insert_space_or_completion: (...args: []) => Promise<any>;
    is_valid_commandline: (...args: [command: string]) => Promise<boolean>;
    next_completion: (...args: [increment: string]) => Promise<Promise<void>>;
    next_history: (...args: []) => Promise<any>;
    next_history_or_completion: (...args: []) => Promise<any>;
    prev_completion: (...args: [increment: string]) => Promise<Promise<void>>;
    prev_history: (...args: []) => Promise<any>;
    prev_history_or_completion: (...args: []) => Promise<any>;
    store_ex_string: (...args: [command: string]) => Promise<void>;
} = ...

Type Declaration

  • accept_line: (...args: []) => Promise<Promise<any>>

    Execute the content of the command line and hide it.

  • complete: (...args: []) => Promise<Promise<any>>

    Insert the first command line history line that starts with the content of the command line in the command line.

  • copy_completion: (...args: []) => Promise<Promise<any>>
  • deselect_completion: (...args: []) => Promise<void>

    Deselects the currently selected completion.

  • execute_ex_on_all_completions: (...args: [excmd: string]) => Promise<Promise<any[]>>
  • execute_ex_on_completion: (...args: [excmd: string]) => Promise<Promise<any>>
  • execute_ex_on_completion_args: (...args: [excmd: string]) => Promise<Promise<any>>
  • hide_and_clear: (...args: []) => Promise<Promise<void>>

    Hide the command line and cmdline_state.clear its content without executing it. *

  • insert_character_or_completion: (...args: [character?: string]) => Promise<any>

    Inserts the selected completion, or its argument/keybinding character.

  • insert_completion: (...args: []) => Promise<Promise<any[]>>

    Inserts the currently selected completion and a space in the command line.

  • insert_space: (...args: []) => Promise<void>

    Insert a space

  • insert_space_or_completion: (...args: []) => Promise<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.

  • is_valid_commandline: (...args: [command: string]) => Promise<boolean>

    Check if the command is valid

  • next_completion: (...args: [increment: string]) => Promise<Promise<void>>

    Selects the next completion.

  • next_history: (...args: []) => Promise<any>

    Selects the next history line.

  • next_history_or_completion: (...args: []) => Promise<any>

    Selects the next completion, or history line if none is selected.

  • prev_completion: (...args: [increment: string]) => Promise<Promise<void>>

    Selects the previous completion.

  • prev_history: (...args: []) => Promise<any>

    Selects the prev history line.

  • prev_history_or_completion: (...args: []) => Promise<any>

    Selects the previous completion, or history line if none is selected.

  • store_ex_string: (...args: [command: string]) => Promise<void>

    Save non-secret commands to the cmdHistory and update the cmdline_history_position