diff options
| author | Patrick Decat <pdecat@gmail.com> | 2023-03-05 19:36:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-05 18:36:35 +0000 |
| commit | 24388033a594e664cc1718fda8ba802399b0d038 (patch) | |
| tree | 7d24aaa677d30fe56e608c3084f7496d642a707f /atuin-client/src | |
| parent | docs(README): fix activity graph link (#753) (diff) | |
| download | atuin-24388033a594e664cc1718fda8ba802399b0d038.zip | |
Show preview of selected command (#643)
* Only show help if terminal strictly has more than one line
* There is no border around the input line in compact mode
* Add command preview
* Dynamic preview height
* Avoid extra allocations
Co-authored-by: Conrad Ludgate <oon@conradludgate.com>
* Address clippy error
* Merge normal and compact views code
* Add show_preview setting, disabled by default
* Convert `bool` to `int` with `if` for legibility
---------
Co-authored-by: Conrad Ludgate <oon@conradludgate.com>
Diffstat (limited to 'atuin-client/src')
| -rw-r--r-- | atuin-client/src/settings.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs index 2975edba..95b01c86 100644 --- a/atuin-client/src/settings.rs +++ b/atuin-client/src/settings.rs @@ -112,6 +112,7 @@ pub struct Settings { pub filter_mode: FilterMode, pub filter_mode_shell_up_key_binding: FilterMode, pub shell_up_key_binding: bool, + pub show_preview: bool, pub exit_mode: ExitMode, #[serde(with = "serde_regex", default = "RegexSet::empty")] pub history_filter: RegexSet, @@ -296,6 +297,7 @@ impl Settings { .set_default("filter_mode", "global")? .set_default("filter_mode_shell_up_key_binding", "global")? .set_default("shell_up_key_binding", false)? + .set_default("show_preview", false)? .set_default("exit_mode", "return-original")? .set_default("session_token", "")? .set_default("style", "auto")? |
