mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Add some more fallback key bindings
DEL (aka backspace) and the arrows. This makes fish usable without binding functions, though not pleasant. See #1256.
This commit is contained in:
parent
0dd2607cac
commit
9de28f6887
1 changed files with 7 additions and 1 deletions
|
@ -260,9 +260,15 @@ void init_input() {
|
|||
input_mapping_add(L"\n", L"execute");
|
||||
input_mapping_add(L"\r", L"execute");
|
||||
input_mapping_add(L"\t", L"complete");
|
||||
input_mapping_add(L"\x3", L"commandline \"\"");
|
||||
input_mapping_add(L"\x3", L"commandline ''");
|
||||
input_mapping_add(L"\x4", L"exit");
|
||||
input_mapping_add(L"\x5", L"bind");
|
||||
input_mapping_add(L"\x7f", L"backward-delete-char");
|
||||
// Arrows - can't have functions, so *-or-search isn't available.
|
||||
input_mapping_add(L"\e[A", L"up-line");
|
||||
input_mapping_add(L"\e[B", L"down-line");
|
||||
input_mapping_add(L"\e[C", L"forward-char");
|
||||
input_mapping_add(L"\e[D", L"backward-char");
|
||||
}
|
||||
|
||||
input_initialized = true;
|
||||
|
|
Loading…
Reference in a new issue