refactor(stdin): disable preview by default and enable when passing --preview

This commit is contained in:
alexpasmantier 2025-03-17 21:26:37 +01:00
parent 60ea4a7e15
commit eb1c280ce2

View File

@ -183,12 +183,12 @@ impl Display for PreviewCommand {
#[derive(Debug, Clone, Eq, PartialEq, Hash, Default, EnumString)]
#[strum(serialize_all = "snake_case")]
pub enum PreviewType {
#[default]
Basic,
EnvVar,
Files,
#[strum(disabled)]
Command(PreviewCommand),
#[default]
None,
}