From a65c072fcb6772ee940fef2a1683cdb39833416b Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Thu, 19 Sep 2024 20:42:54 +0300 Subject: [PATCH] Add zsh keybinds --- users/functionalhacker/home.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/users/functionalhacker/home.nix b/users/functionalhacker/home.nix index 08ec2598..74b53e8a 100644 --- a/users/functionalhacker/home.nix +++ b/users/functionalhacker/home.nix @@ -97,6 +97,17 @@ if [ "''${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi + + # use e to open command in editor + autoload edit-command-line; zle -N edit-command-line + bindkey -M vicmd e edit-command-line + + # bind delete in normal mode + bindkey -M vicmd '^[[3~' delete-char + + # Rebind fzf to ctrl+f + bindkey '^F' fzf-file-widget + bindkey '^T' transpose-chars ''; };