From 38695b29bd3d0317092bc4d414c8c73c1bc4e79c Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 31 Oct 2022 20:47:33 -0400 Subject: [PATCH] use shift+enter for completion in terminal --- modules/applications/alacritty.nix | 4 ++-- modules/applications/kitty.nix | 5 ++++- windows/alacritty.yml | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/applications/alacritty.nix b/modules/applications/alacritty.nix index 2c93b60..03f7393 100644 --- a/modules/applications/alacritty.nix +++ b/modules/applications/alacritty.nix @@ -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 diff --git a/modules/applications/kitty.nix b/modules/applications/kitty.nix index cf5e2bb..87e66af 100644 --- a/modules/applications/kitty.nix +++ b/modules/applications/kitty.nix @@ -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) diff --git a/windows/alacritty.yml b/windows/alacritty.yml index 4edb4d4..c030789 100644 --- a/windows/alacritty.yml +++ b/windows/alacritty.yml @@ -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 }