From da1e7253da4e35de960beeb7040f1c0e94cf283b Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 1 Sep 2025 13:02:30 +0800 Subject: [PATCH] docs: flypy - user customized words, fix typos --- .typos.toml | 13 ++++++++++++- outputs/default.nix | 9 ++++----- .../rime-data-flypy/share/rime-data/flypy_user.txt | 3 ++- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.typos.toml b/.typos.toml index 01266068..57582c3c 100644 --- a/.typos.toml +++ b/.typos.toml @@ -1,10 +1,21 @@ [files] +# Respect .ignore files. ignore-dot = true +# Respect ignore files. ignore-files = true -extend-exclude = ["themes/", "data/", "static-surprises/", "resources/"] +# Typos-specific ignore globs (gitignore syntax). +# NOTE: This setting is ignored when you pass the path directly on the command line, as cachix/git-hooks.nix does. +# To ignore those files, you must also exclude those directories via git-hooks.hooks.typos.settings.exclude. +extend-exclude = [ + "data/", + "rime-data/", +] [default] +# Check binary files as text. binary = false +# Verify spelling in file names. +check-filename = true # ignore some special identifiers(sha256, mac address, crypto keys, etc) extend-ignore-re = [ "iterm2", diff --git a/outputs/default.nix b/outputs/default.nix index b2463cab..3ad1f340 100644 --- a/outputs/default.nix +++ b/outputs/default.nix @@ -134,14 +134,15 @@ in enable = true; settings = { write = true; # Automatically fix typos - configPath = "./.typos.toml"; # relative to the flake root + configPath = ".typos.toml"; # relative to the flake root + exclude = "rime-data/"; }; }; prettier = { enable = true; settings = { write = true; # Automatically format files - configPath = "./.prettierrc.yaml"; # relative to the flake root + configPath = ".prettierrc.yaml"; # relative to the flake root }; }; # deadnix.enable = true; # detect unused variable bindings in `*.nix` @@ -173,9 +174,7 @@ in nodePackages.prettier ]; name = "dots"; - shellHook = '' - ${self.checks.${system}.pre-commit-check.shellHook} - ''; + inherit (self.checks.${system}.pre-commit-check) shellHook; }; } ); diff --git a/overlays/fcitx5/rime-data-flypy/share/rime-data/flypy_user.txt b/overlays/fcitx5/rime-data-flypy/share/rime-data/flypy_user.txt index b0dbc245..fc3cf8c5 100644 --- a/overlays/fcitx5/rime-data-flypy/share/rime-data/flypy_user.txt +++ b/overlays/fcitx5/rime-data-flypy/share/rime-data/flypy_user.txt @@ -21,7 +21,8 @@ ryan4yin@linux.com mail https://thiscute.world blog # [自定义]常用符号 -## 小鹤内置常用符号快捷键: https://xgr313l2jy.k.topthink.com/@xhrm/fh.html +## 小鹤内置:希腊大写 ofxd 希腊小写 ofxx +## https://en.wikipedia.org/wiki/Greek_alphabet α alpa β beta γ gama