From b519de1d6f59208bae99c1137790d5c28d26a178 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 22 Feb 2023 21:08:34 +0000 Subject: [PATCH] ripgrep: add .ignore file for po/ translations --- hosts/common/home/default.nix | 1 + hosts/common/home/ripgrep.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 hosts/common/home/ripgrep.nix diff --git a/hosts/common/home/default.nix b/hosts/common/home/default.nix index 20a8a75a..f7b53a0c 100644 --- a/hosts/common/home/default.nix +++ b/hosts/common/home/default.nix @@ -13,6 +13,7 @@ ./mpv.nix ./neovim.nix ./newsflash.nix + ./ripgrep.nix ./splatmoji.nix ./ssh.nix ./sublime-music.nix diff --git a/hosts/common/home/ripgrep.nix b/hosts/common/home/ripgrep.nix new file mode 100644 index 00000000..ab46f2c3 --- /dev/null +++ b/hosts/common/home/ripgrep.nix @@ -0,0 +1,9 @@ +{ sane-lib, ... }: +{ + # .ignore file is read by ripgrep (rg), silver searcher (ag), maybe others. + # ignore translation files by default when searching, as they tend to have + # a LOT of duplicate text. + sane.user.fs.".ignore" = sane-lib.fs.wantedText '' + po/ + ''; +}