From cdb0dfae5f7ba0489a392db3e8a7c909d18af459 Mon Sep 17 00:00:00 2001 From: fzdwx Date: Tue, 13 Jun 2023 01:06:51 +0800 Subject: [PATCH] Allow selecting multiple recipes with default chooser (#1547) --- src/config.rs | 2 +- tests/choose.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index abd24cf..70cb43f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -4,7 +4,7 @@ use { }; // These three strings should be kept in sync: -pub(crate) const CHOOSER_DEFAULT: &str = "fzf --preview 'just --show {}'"; +pub(crate) const CHOOSER_DEFAULT: &str = "fzf --multi --preview 'just --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 ed74638..153a704 100644 --- a/tests/choose.rs +++ b/tests/choose.rs @@ -152,7 +152,7 @@ fn invoke_error_function() { ", ) .stderr_regex( - r"error: Chooser `/ -cu fzf --preview 'just --show \{\}'` invocation failed: .*\n", + r"error: Chooser `/ -cu fzf --multi --preview 'just --show \{\}'` invocation failed: .*\n", ) .status(EXIT_FAILURE) .shell(false)