From 2901044520fbed466eea8b91df55183297eacd47 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 16 Dec 2020 04:20:00 +0000 Subject: [PATCH] mcfly: add option to enable fuzzy search McFly 0.5.1 added support for fuzzy searching. --- modules/programs/mcfly.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/programs/mcfly.nix b/modules/programs/mcfly.nix index 1206f9da5..7f7303916 100644 --- a/modules/programs/mcfly.nix +++ b/modules/programs/mcfly.nix @@ -27,6 +27,14 @@ in { ''; }; + enableFuzzySearch = mkOption { + default = false; + type = types.bool; + description = '' + Whether to enable fuzzy searching. + ''; + }; + enableBashIntegration = mkOption { default = true; type = types.bool; @@ -75,5 +83,7 @@ in { } (mkIf cfg.enableLightTheme { home.sessionVariables.MCFLY_LIGHT = "TRUE"; }) + + (mkIf cfg.enableFuzzySearch { home.sessionVariables.MCFLY_FUZZY = "TRUE"; }) ]); }