summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQeole <Qeole@users.noreply.github.com>2023-12-11 23:46:28 +0000
committerCasey Rodarmor <casey@rodarmor.com>2023-12-22 07:59:37 -0800
commit6ca2cb44599cc36f84c5bd202926c48140e3464c (patch)
tree98a4c585cfe949cecf7163fe1e2fa85311f10ff9
parentf063704eb9d87f50367d61801c6151ef87bb83d4 (diff)
Pass `--unstable` and `--color always` to default chooser (#1758)opts
-rw-r--r--src/config.rs3
-rw-r--r--tests/choose.rs2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 9e8b7b92..b22e9190 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 ff224257..940fab0e 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)