diff options
Diffstat (limited to 'crates/atuin-client')
| -rw-r--r-- | crates/atuin-client/config.toml | 1 | ||||
| -rw-r--r-- | crates/atuin-client/src/settings.rs | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/crates/atuin-client/config.toml b/crates/atuin-client/config.toml index 4ddd93f5..00343dbb 100644 --- a/crates/atuin-client/config.toml +++ b/crates/atuin-client/config.toml @@ -209,6 +209,7 @@ records = true ## possible values: auto, static ## auto: length of the selected command. ## static: length of the longest command stored in the history. +## fixed: use max_preview_height as fixed height. # strategy = "auto" [daemon] diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs index b64418cd..a83f36bb 100644 --- a/crates/atuin-client/src/settings.rs +++ b/crates/atuin-client/src/settings.rs @@ -410,6 +410,10 @@ pub enum PreviewStrategy { // Preview height is calculated for the length of the longest command stored in the history. #[serde(rename = "static")] Static, + + // max_preview_height is used as fixed height. + #[serde(rename = "fixed")] + Fixed, } #[derive(Clone, Debug, Deserialize, Serialize)] |
