18 Key Bindings

BashStyle-NG Key Bindings

Figure 18.1: Key Bindings

Setting: use_keybindingscfg Customize Keybindings

This master switch will make BashStyle-NG adjust the Key Bindings for readline.

BashStyle-NG additional Key Bindings

complete-path

For the string the cursor currently is at, use which to complete it’s file path

list-keys

list all currently bound commands and their key binding

plocate

For the string the cursor currently is at, use plocate to search for it

plocate-file

like plocate Key Binding, but explicitely only searches for the basename (filename, no directory name)

rerun-root

rerun the previous command as root

Readline standard Key Bindings

undo

Undo the last editing command. Remembered separately for each line.

upcase_word

Uppercase the current or next word.

capitalize_word

Capitalize the current or next word.

downcase_word

Lowercase the current or next word.

transpose_words

Drag the word before point past the word after point, moving point past that word.

transpose_chars

Drag the character before point forward over the character at point, moving point forward as well.

unix_word_rubout

Kill the word behind point, using whitespace as a word boundary.

kill_word

Kill from point to the end of the current word, or if between words, to the end of the next word.

possible_filename_completions

List the possible completions for the text before point as a filename.

possible_hostname_completions

List the possible completions for the text before point as a hostname.

possible_username_completions

List the possible completions for the text before point as a username.

possible_variable_completions

List the possible completions for the text before point as a shell variable.

kill_line

Kill the text from point to the end of the line.

unix_line_discard

Kill backward from point to the beginning of the line.

beginning_of_line

Move to the start of the current line.

end_of_line

Move to the end of the line.

clear_screen

Clear the screen, leaving the current line at the top of the screen.

history_search_forward

Search forward through the history for the string of characters between the start of the current line and point.

history_search_backward

Search backward through the history for the string of characters between the start of the current line and point.

menu_complete

Similar to complete, but replaces the word to be completed with a single match from the list of possible completions.

alias_expand_line

Expand any aliases on the current line.

backward_char

Move back one character.

backward_word

Move back to the start of the current or previous word.

backward_delete_char

Delete the character behind the cursor.

delete_char

Delete the character at point.

copy_backward_word

Copy the word before point to the kill buffer without deleting it.

copy_forward_word

Copy the word after point to the kill buffer without deleting it.

forward_char

Move forward one character.

forward_word

Move forward to the end of the next word.

overwrite_mode

Toggle overwrite mode.

menu_complete_backward

Identical to menu_complete, but moves backward through the list of possible completions.

backward_kill_line

Kill backward from point to the beginning of the line.

next_screen_line

Move the cursor to the next physical screen line, if the current logical line wraps.

previous_screen_line

Move the cursor to the previous physical screen line, if the current logical line wraps.

spell_correct_word

Perform spelling correction on the current word.

fetch_history

Fetch the history line specified by the current numeric argument.

rl_clear_display

Clear the screen and the scrollback buffer entirely.