From df63bce9261daf3c4d86449398f6950c6a0bf051 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 14 Jul 2023 13:19:04 +0800 Subject: [PATCH] feat: set args about key repeat - macOS --- modules/darwin/apps.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/darwin/apps.nix b/modules/darwin/apps.nix index a42e1d82..448ddea7 100644 --- a/modules/darwin/apps.nix +++ b/modules/darwin/apps.nix @@ -48,6 +48,12 @@ AppleInterfaceStyle = "Dark"; # dark mode AppleKeyboardUIMode = 3; # Mode 3 enables full keyboard control. ApplePressAndHoldEnabled = true; # enable press and hold + + # If you press and hold certain keyboard keys when in a text area, the key’s character begins to repeat. + # This is very useful for vim users, they use `hjkl` to move cursor. + InitialKeyRepeat = 20; # sets how long it takes before it starts repeating. + KeyRepeat = 10; # sets how fast it repeats once it starts. + NSAutomaticCapitalizationEnabled = false; # disable auto capitalization(自动大写) NSAutomaticDashSubstitutionEnabled = false; # disable auto dash substitution(智能破折号替换) NSAutomaticPeriodSubstitutionEnabled = false; # disable auto period substitution(智能句号替换)