From be14a2add172621f1d02b0457e50a6a96fd9b73b Mon Sep 17 00:00:00 2001 From: 347Online | Katie Janzen Date: Sat, 8 Jun 2024 10:10:29 -0500 Subject: Add inline prediction option mirroring the capitalization option --- modules/examples/lnl.nix | 1 + modules/system/defaults/NSGlobalDomain.nix | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix index 2edf6cb..96954d2 100644 --- a/modules/examples/lnl.nix +++ b/modules/examples/lnl.nix @@ -10,6 +10,7 @@ system.defaults.NSGlobalDomain.InitialKeyRepeat = 10; system.defaults.NSGlobalDomain.KeyRepeat = 1; system.defaults.NSGlobalDomain.NSAutomaticCapitalizationEnabled = false; + system.defaults.NSGlobalDomain.NSAutomaticInlinePredictionEnabled = false; system.defaults.NSGlobalDomain.NSAutomaticDashSubstitutionEnabled = false; system.defaults.NSGlobalDomain.NSAutomaticPeriodSubstitutionEnabled = false; system.defaults.NSGlobalDomain.NSAutomaticQuoteSubstitutionEnabled = false; diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix index 9eb31d5..6dcedca 100644 --- a/modules/system/defaults/NSGlobalDomain.nix +++ b/modules/system/defaults/NSGlobalDomain.nix @@ -7,7 +7,6 @@ let inherit (config.lib.defaults.types) floatWithDeprecationError; in { options = { - system.defaults.NSGlobalDomain.AppleShowAllFiles = mkOption { type = types.nullOr types.bool; default = null; @@ -104,6 +103,14 @@ in { ''; }; + system.defaults.NSGlobalDomain.NSAutomaticInlinePredictionEnabled = mkOption { + type = types.nullOr types.bool; + default = null; + description = '' + Whether to enable inline predictive text. The default is true. + ''; + }; + system.defaults.NSGlobalDomain.NSAutomaticDashSubstitutionEnabled = mkOption { type = types.nullOr types.bool; default = null; -- cgit v1.2.3