use shift+enter for completion in terminal

This commit is contained in:
Noah Masur 2022-10-31 20:47:33 -04:00
parent 40424a0102
commit 38695b29bd
3 changed files with 7 additions and 4 deletions

View File

@ -23,8 +23,8 @@
key_bindings = [
# Used for word completion in fish_user_key_bindings
{
key = "L";
mods = "Control|Shift";
key = "Return";
mods = "Shift";
chars = "\\x1F";
}
# Used for searching nixpkgs in fish_user_key_bindings

View File

@ -9,7 +9,10 @@
environment = { };
extraConfig = "";
font.size = 14;
keybindings = { };
keybindings = {
"shift+enter" = "send_text all \\x1F";
"super+f" = "toggle_fullscreen";
};
settings = {
# Colors (adapted from: https://github.com/kdrag0n/base16-kitty/blob/master/templates/default-256.mustache)

View File

@ -720,7 +720,7 @@ shell:
# in the order they were defined in.
key_bindings:
# Used for word completion in fish_user_key_bindings
- { key: L, mods: Control|Shift, chars: "\x1F" }
- { key: Return, mods: Shift, chars: "\x1F" }
# Used for searching nixpkgs in fish_user_key_bindings
- { key: N, mods: Control|Shift, chars: "\x11F" }
- { key: H, mods: Control|Shift, mode: ~Vi, action: ToggleViMode }