From a56085f059b2444812353e715e5a4b93ea75b018 Mon Sep 17 00:00:00 2001 From: YummyOreo Date: Sat, 13 Jan 2024 09:15:49 -0800 Subject: feat(ui): vim mode (#1553) * feat(config): add vim option to config * feat(ui): simple vim mode * fix(windows): windows sadly doesn't support the stuff * feat(ui): blinking * fix(merge) * revert: reverts some debugging stuff * feat(ui): changes the defaut to insert, don't know what should be the default * feat(ui): implements some vim parity * doc: adds this to the docs * docs(keybindings): adds vim mode keybindsings to the list of keybindings * refactor: rustfmt and remove the docs for pr in own repo * refactor: use execute! * Update atuin/src/command/client/search/interactive.rs --------- Co-authored-by: Ellie Huxtable --- atuin-client/src/settings.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'atuin-client/src') diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs index 0798a890..ea01961c 100644 --- a/atuin-client/src/settings.rs +++ b/atuin-client/src/settings.rs @@ -201,6 +201,7 @@ pub struct Settings { pub max_preview_height: u16, pub show_help: bool, pub exit_mode: ExitMode, + pub vim: bool, pub word_jump_mode: WordJumpMode, pub word_chars: String, pub scroll_context_lines: usize, @@ -436,6 +437,7 @@ impl Settings { // New users will get the new default, that is more similar to what they are used to. .set_default("enter_accept", false)? .set_default("sync.records", false)? + .set_default("vim", false)? .add_source( Environment::with_prefix("atuin") .prefix_separator("_") -- cgit v1.3.1