From ee0eac6b07e2be5b48ad1b602e0211e004e9d89c Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 18 Mar 2024 09:09:35 -0400 Subject: [PATCH] helix: C-s to save --- home/helix.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/helix.nix b/home/helix.nix index e3feb78..0ff2128 100644 --- a/home/helix.nix +++ b/home/helix.nix @@ -5,8 +5,9 @@ theme = "snazzy"; editor .true-color = true; keys.insert.j.j = "normal_mode"; - keys.insert.s.s = ":write"; # TODO: this should also put back in normal_mode - keys.normal.s.s = ":write"; + # Shortcut to save file, in any mode. + keys.insert."C-s" = [":write" "normal_mode"]; + keys.normal."C-s" = ":write"; }; }; }