aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client
diff options
context:
space:
mode:
authorDieter Eickstaedt <eickstaedt@deicon.de>2023-09-17 20:30:13 +0200
committerGitHub <noreply@github.com>2023-09-17 19:30:13 +0100
commitebef5cdaf018f2bb03682eb516412ce4151297aa (patch)
treea1ba2031a4317e808226903f74316e7bcbd4eff9 /atuin-client
parentFix selecting complex fish commands (#1237) (diff)
downloadatuin-ebef5cdaf018f2bb03682eb516412ce4151297aa.zip
feat(keyup): Configure SearchMode for KeyUp invocation #1216 (#1224)
* feat(keyup): Configure SearchMode for KeyUp invocation #1216 * docs: adjusted search mode documentation * feat: setting search mode on engine * chore: cargo fmt * chore: removed redundant field name
Diffstat (limited to 'atuin-client')
-rw-r--r--atuin-client/config.toml5
-rw-r--r--atuin-client/src/settings.rs1
2 files changed, 6 insertions, 0 deletions
diff --git a/atuin-client/config.toml b/atuin-client/config.toml
index 8a219641..7fd07986 100644
--- a/atuin-client/config.toml
+++ b/atuin-client/config.toml
@@ -47,6 +47,11 @@
## leave unspecified to use same mode set in "filter_mode"
# filter_mode_shell_up_key_binding = "global"
+## which search mode to use when atuin is invoked from a shell up-key binding
+## the accepted values are identical to those of "search_mode"
+## leave unspecified to use same mode set in "search_mode"
+# search_mode_shell_up_key_binding = "fuzzy"
+
## which style to use
## possible values: auto, full, compact
# style = "auto"
diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs
index ebc1a372..e2d22e93 100644
--- a/atuin-client/src/settings.rs
+++ b/atuin-client/src/settings.rs
@@ -157,6 +157,7 @@ pub struct Settings {
pub search_mode: SearchMode,
pub filter_mode: FilterMode,
pub filter_mode_shell_up_key_binding: Option<FilterMode>,
+ pub search_mode_shell_up_key_binding: Option<SearchMode>,
pub shell_up_key_binding: bool,
pub inline_height: u16,
pub invert: bool,