From ed394afa82ef919937521e5ce72fc467cec203f9 Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Sun, 18 Dec 2022 19:26:09 +0100 Subject: Allow overriding filter and search modes from CLI (#635) * Allow overriding filter and search modes from CLI arguments * Use session filter mode for bash up key binding * We precisely do not want to add quotes here so that all arguments are properly passed * Add --shell-up-key-binding hidden command argument and filter_mode_shell_up_key_binding configuration option to allow customizing the filter mode used when atuin is invoked from a shell up-key binding * Correct up binding for zsh Co-authored-by: Ellie Huxtable --- docs/config.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 9a7e906d..e5ae4adb 100644 --- a/docs/config.md +++ b/docs/config.md @@ -49,7 +49,7 @@ auto_sync = true/false ### `update_check` -Configures whether or not to automatically check for updates. Defaults to +Configures whether or not to automatically check for updates. Defaults to true. ``` @@ -143,6 +143,16 @@ Filter modes can still be toggled via ctrl-r filter_mode = "host" ``` +### `filter_mode_shell_up_key_binding` + +The default filter to use when searching and being invoked from a shell up-key binding. + +Accepts exactly the same options as `filter_mode` above + +``` +filter_mode_shell_up_key_binding = "session" +``` + ### `exit_mode` What to do when the escape key is pressed when searching -- cgit v1.3.1