diff options
author | Ellie Huxtable <ellie@elliehuxtable.com> | 2023-05-21 17:42:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 17:42:44 +0100 |
commit | 5b5e4eaa865454134891fd1e45ad2b07b4015825 (patch) | |
tree | c389eb36085f9069cd45bbcb2420a99248122128 /atuin-client/src/settings.rs | |
parent | d2240e1163a62f96dfb1cb99c38ffa2390d53c33 (diff) |
Input bar at the top if we are in inline mode (#866)
* Put input chunk at the top in inline mode
* Invert the search results if bar is at top
* fix styling on reversed rendering
* add setting
* settings
---------
Co-authored-by: Patrick Decat <pdecat@gmail.com>
Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
Diffstat (limited to 'atuin-client/src/settings.rs')
-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 7da83913d..71f727305 100644 --- a/atuin-client/src/settings.rs +++ b/atuin-client/src/settings.rs @@ -147,6 +147,7 @@ pub struct Settings { pub filter_mode_shell_up_key_binding: Option<FilterMode>, pub shell_up_key_binding: bool, pub inline_height: u16, + pub invert: bool, pub show_preview: bool, pub exit_mode: ExitMode, pub word_jump_mode: WordJumpMode, @@ -336,6 +337,7 @@ impl Settings { .set_default("style", "auto")? .set_default("inline_height", 0)? .set_default("show_preview", false)? + .set_default("invert", false)? .set_default("exit_mode", "return-original")? .set_default("word_jump_mode", "emacs")? .set_default( |