From 2462790fcfcdf2a641ab99ed560cf4145f2df314 Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Mon, 6 Jul 2026 10:59:39 +0800 Subject: [PATCH] nixos/fcitx5: update quick phrase format --- nixos/modules/i18n/input-method/fcitx5.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/i18n/input-method/fcitx5.nix b/nixos/modules/i18n/input-method/fcitx5.nix index 989e5fbf8239..a4c9c7787eff 100644 --- a/nixos/modules/i18n/input-method/fcitx5.nix +++ b/nixos/modules/i18n/input-method/fcitx5.nix @@ -109,7 +109,8 @@ in (pkgs.writeTextDir "share/fcitx5/data/QuickPhrase.mb" ( lib.concatStringsSep "\n" ( lib.mapAttrsToList ( - name: value: "${name} ${builtins.replaceStrings [ "\\" "\n" ] [ "\\\\" "\\n" ] value}" + name: value: + "${name} \"${builtins.replaceStrings [ "\\" "\n" "\"" ] [ "\\\\" "\\n" "\\\"" ] value}\"" ) cfg.quickPhrase ) ))