Pass --unstable and --color always to default chooser (#1758)

This commit is contained in:
Qeole 2023-12-11 23:46:28 +00:00 committed by GitHub
parent c108605e2d
commit e6e1823359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,8 @@ use {
}; };
// These three strings should be kept in sync: // 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 CHOOSER_ENVIRONMENT_KEY: &str = "JUST_CHOOSER";
pub(crate) const CHOOSE_HELP: &str = "Select one or more recipes to run using a binary. If \ 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 \ `--chooser` is not passed the chooser defaults to the value \

View File

@ -152,7 +152,7 @@ fn invoke_error_function() {
", ",
) )
.stderr_regex( .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) .status(EXIT_FAILURE)
.shell(false) .shell(false)