From e6e182335926f878066a1d13b6c68cb0f611db9f Mon Sep 17 00:00:00 2001 From: Qeole Date: Mon, 11 Dec 2023 23:46:28 +0000 Subject: [PATCH] Pass `--unstable` and `--color always` to default chooser (#1758) --- src/config.rs | 3 ++- tests/choose.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 9e8b7b9..b22e919 100644 --- a/src/config.rs +++ b/src/config.rs @@ -4,7 +4,8 @@ use { }; // These three strings should be kept in sync: -pub(crate) const CHOOSER_DEFAULT: &str = "fzf --multi --preview 'just --show {}'"; +pub(crate) const CHOOSER_DEFAULT: &str = + "fzf --multi --preview 'just --unstable --color always --show {}'"; pub(crate) const CHOOSER_ENVIRONMENT_KEY: &str = "JUST_CHOOSER"; pub(crate) const CHOOSE_HELP: &str = "Select one or more recipes to run using a binary. If \ `--chooser` is not passed the chooser defaults to the value \ diff --git a/tests/choose.rs b/tests/choose.rs index ff22425..940fab0 100644 --- a/tests/choose.rs +++ b/tests/choose.rs @@ -152,7 +152,7 @@ fn invoke_error_function() { ", ) .stderr_regex( - r"error: Chooser `/ -cu fzf --multi --preview 'just --show \{\}'` invocation failed: .*\n", + r"error: Chooser `/ -cu fzf --multi --preview 'just --unstable --color always --show \{\}'` invocation failed: .*\n", ) .status(EXIT_FAILURE) .shell(false)