diff --git a/modules/apps/terminal/helix.nix b/modules/apps/terminal/helix.nix index 1c6f0c7..1a09520 100644 --- a/modules/apps/terminal/helix.nix +++ b/modules/apps/terminal/helix.nix @@ -21,14 +21,18 @@ right = ["diagnostics" "selections" "register" "file-encoding" "position" "position-percentage"]; }; }; - keys = { + keys = let + reg = ""; + deleteMacro = "@\"${reg}y"; + changeMacro = "@\"${reg}yi"; + in { normal = { - "d" = "delete_selection_noyank"; - "A-d" = "delete_selection"; + c = changeMacro; + d = deleteMacro; }; select = { - "d" = "delete_selection_noyank"; - "A-d" = "delete_selection"; + c = changeMacro; + d = deleteMacro; }; }; };