aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client
diff options
context:
space:
mode:
Diffstat (limited to 'atuin-client')
-rw-r--r--atuin-client/config.toml4
-rw-r--r--atuin-client/src/settings.rs2
2 files changed, 6 insertions, 0 deletions
diff --git a/atuin-client/config.toml b/atuin-client/config.toml
index 7313f9fb..b84151a3 100644
--- a/atuin-client/config.toml
+++ b/atuin-client/config.toml
@@ -68,6 +68,10 @@
## number of context lines to show when scrolling by pages
# scroll_context_lines = 1
+## use ctrl instead of alt as the shortcut modifier key for numerical UI shortcuts
+## alt-0 .. alt-9
+# ctrl_n_shortcuts = false
+
## prevent commands matching any of these regexes from being written to history.
## Note that these regular expressions are unanchored, i.e. if they don't start
## with ^ or end with $, they'll match anywhere in the command.
diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs
index 3bcb2705..622abde4 100644
--- a/atuin-client/src/settings.rs
+++ b/atuin-client/src/settings.rs
@@ -168,6 +168,7 @@ pub struct Settings {
#[serde(with = "serde_regex", default = "RegexSet::empty")]
pub cwd_filter: RegexSet,
pub workspaces: bool,
+ pub ctrl_n_shortcuts: bool,
// This is automatically loaded when settings is created. Do not set in
// config! Keep secrets and settings apart.
@@ -380,6 +381,7 @@ impl Settings {
.set_default("shell_up_key_binding", false)?
.set_default("session_token", "")?
.set_default("workspaces", false)?
+ .set_default("ctrl_n_shortcuts", false)?
.add_source(
Environment::with_prefix("atuin")
.prefix_separator("_")