From 56b971ae1990f8b03603260801161caf0dfb84d7 Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Wed, 21 Feb 2024 03:25:55 -0500 Subject: feat(client): add config option keys.scroll_exits (#1744) * feat(client): add config option keys.scroll_exits If the config option is set the `false`, using the up/down key won't exit the TUI when scrolled past the first/last entry. Example: ``` [keys] scroll_exits = false ``` The default is `true`, which is the current behavior. * Update atuin/src/command/client/search/interactive.rs Co-authored-by: Koichi Murase * refactor: add option to config.toml --------- Co-authored-by: Koichi Murase --- atuin-client/config.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'atuin-client/config.toml') diff --git a/atuin-client/config.toml b/atuin-client/config.toml index 97c62881..1475b359 100644 --- a/atuin-client/config.toml +++ b/atuin-client/config.toml @@ -174,3 +174,7 @@ enter_accept = true ## Set commands that will be completely ignored from stats #ignored_commands = ["cd", "ls", "vi"] + +[keys] +# Defaults to true. If disabled, using the up/down key won't exit the TUI when scrolled past the first/last entry. +# scroll_exits = false -- cgit v1.3.1