bash: Commands For Text
1
1 8.4.3 Commands For Changing Text
1 --------------------------------
1
1 'end-of-file (usually C-d)'
1 The character indicating end-of-file as set, for example, by
1 'stty'. If this character is read when there are no characters on
1 the line, and point is at the beginning of the line, Readline
1 interprets it as the end of input and returns EOF.
1
1 'delete-char (C-d)'
1 Delete the character at point. If this function is bound to the
1 same character as the tty EOF character, as 'C-d' commonly is, see
1 above for the effects.
1
1 'backward-delete-char (Rubout)'
1 Delete the character behind the cursor. A numeric argument means
1 to kill the characters instead of deleting them.
1
1 'forward-backward-delete-char ()'
1 Delete the character under the cursor, unless the cursor is at the
1 end of the line, in which case the character behind the cursor is
1 deleted. By default, this is not bound to a key.
1
1 'quoted-insert (C-q or C-v)'
1 Add the next character typed to the line verbatim. This is how to
1 insert key sequences like 'C-q', for example.
1
1 'self-insert (a, b, A, 1, !, ...)'
1 Insert yourself.
1
1 'bracketed-paste-begin ()'
1 This function is intended to be bound to the "bracketed paste"
1 escape sequence sent by some terminals, and such a binding is
1 assigned by default. It allows Readline to insert the pasted text
1 as a single unit without treating each character as if it had been
1 read from the keyboard. The characters are inserted as if each one
1 was bound to 'self-insert') instead of executing any editing
1 commands.
1
1 'transpose-chars (C-t)'
1 Drag the character before the cursor forward over the character at
1 the cursor, moving the cursor forward as well. If the insertion
1 point is at the end of the line, then this transposes the last two
1 characters of the line. Negative arguments have no effect.
1
1 'transpose-words (M-t)'
1 Drag the word before point past the word after point, moving point
1 past that word as well. If the insertion point is at the end of
1 the line, this transposes the last two words on the line.
1
1 'upcase-word (M-u)'
1 Uppercase the current (or following) word. With a negative
1 argument, uppercase the previous word, but do not move the cursor.
1
1 'downcase-word (M-l)'
1 Lowercase the current (or following) word. With a negative
1 argument, lowercase the previous word, but do not move the cursor.
1
1 'capitalize-word (M-c)'
1 Capitalize the current (or following) word. With a negative
1 argument, capitalize the previous word, but do not move the cursor.
1
1 'overwrite-mode ()'
1 Toggle overwrite mode. With an explicit positive numeric argument,
1 switches to overwrite mode. With an explicit non-positive numeric
1 argument, switches to insert mode. This command affects only
1 'emacs' mode; 'vi' mode does overwrite differently. Each call to
1 'readline()' starts in insert mode.
1
1 In overwrite mode, characters bound to 'self-insert' replace the
1 text at point rather than pushing the text to the right.
1 Characters bound to 'backward-delete-char' replace the character
1 before point with a space.
1
1 By default, this command is unbound.
1