EditorCmds
EditorCmds: {
    backward_char: (...args: [arg?: any]) => Promise<boolean>;
    backward_kill_line: (...args: [arg?: any]) => Promise<boolean>;
    backward_kill_word: (...args: [arg?: any]) => Promise<boolean>;
    backward_word: (...args: [arg?: any]) => Promise<boolean>;
    beginning_of_line: (...args: [arg?: any]) => Promise<boolean>;
    capitalize_word: (...args: [arg?: any]) => Promise<boolean>;
    delete_backward_char: (...args: [arg?: any]) => Promise<boolean>;
    delete_char: (...args: [arg?: any]) => Promise<boolean>;
    downcase_word: (...args: [arg?: any]) => Promise<boolean>;
    end_of_line: (...args: [arg?: any]) => Promise<boolean>;
    forward_char: (...args: [arg?: any]) => Promise<boolean>;
    forward_word: (...args: [arg?: any]) => Promise<boolean>;
    insert_text: (...args: [arg?: any]) => Promise<boolean>;
    jumble: (...args: [arg?: any]) => Promise<boolean>;
    kill_line: (...args: [arg?: any]) => Promise<boolean>;
    kill_whole_line: (...args: [arg?: any]) => Promise<boolean>;
    kill_word: (...args: [arg?: any]) => Promise<boolean>;
    next_line: (...args: [arg?: any]) => Promise<boolean>;
    previous_line: (...args: [arg?: any]) => Promise<boolean>;
    rot13: (...args: [arg?: any]) => Promise<boolean>;
    tab_insert: (...args: [arg?: any]) => Promise<boolean>;
    transpose_chars: (...args: [arg?: any]) => Promise<boolean>;
    transpose_words: (...args: [arg?: any]) => Promise<boolean>;
    unix_word_rubout: (...args: [arg?: any]) => Promise<boolean>;
    upcase_word: (...args: [arg?: any]) => Promise<boolean>;
} = ...

Type Declaration

  • backward_char: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's backward_char. Moves the caret one character to the left.

  • backward_kill_line: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's backward_kill_line, i.e. deletes every character to the left of the caret until either the beginning of the text is found or a newline character ("\n") is reached.

  • backward_kill_word: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's backward_kill_word. Deletes every character from the caret to the beginning of a word with word being defined by the wordpattern setting.

  • backward_word: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's backward_word. Moves the caret one word to the left, with words being defined by the wordpattern setting.

  • beginning_of_line: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's beginning_of_line. Moves the caret to the right of the first newline character found at the left of the caret. If no newline can be found, move the caret to the beginning of the text.

  • capitalize_word: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's capitalize_word. Makes the initial character of the word the caret is in uppercase.

  • delete_backward_char: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's delete_backward_char, i.e. deletes the character to the left of the caret.

  • delete_char: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's delete_char, i.e. deletes the character to the right of the caret.

  • downcase_word: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's downcase_word. Makes the word the caret is in lowercase.

  • end_of_line: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's end_of_line. Moves the caret to the left of the first newline character found at the right of the caret. If no newline can be found, move the caret to the end of the text.

  • forward_char: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's forward_char. Moves the caret one character to the right.

  • forward_word: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's forward_word. Moves the caret one word to the right, with words being defined by the wordpattern setting.

  • insert_text: (...args: [arg?: any]) => Promise<boolean>

    Insert text in the current input.

  • jumble: (...args: [arg?: any]) => Promise<boolean>
  • kill_line: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's kill_line, i.e. deletes every character to the right of the caret until reaching either the end of the text or the newline character (\n).

  • kill_whole_line: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's kill_whole_line. Deletes every character between the two newlines the caret is in. If a newline can't be found on the left of the caret, everything is deleted until the beginning of the text is reached. If a newline can't be found on the right, everything is deleted until the end of the text is found.

  • kill_word: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's kill_word. Deletes every character from the caret to the end of a word, with words being defined by the wordpattern setting.

  • next_line: (...args: [arg?: any]) => Promise<boolean>
  • previous_line: (...args: [arg?: any]) => Promise<boolean>
  • rot13: (...args: [arg?: any]) => Promise<boolean>
  • tab_insert: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's tab_insert, i.e. inserts a tab character to the left of the caret.

  • transpose_chars: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's transpose_chars, i.e. transposes the character to the left of the caret with the character to the right of the caret and then moves the caret one character to the right. If there are no characters to the right or to the left of the caret, uses the two characters the closest to the caret.

  • transpose_words: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's transpose_words. Basically equivalent to im_transpose_chars, but using words as defined by the wordpattern setting.

  • unix_word_rubout: (...args: [arg?: any]) => Promise<boolean>

    Deletes back to the previous sequence of letters, or deletes the selection.

  • upcase_word: (...args: [arg?: any]) => Promise<boolean>

    Behaves like readline's upcase_word. Makes the word the caret is in uppercase.