aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/settings.rs
diff options
context:
space:
mode:
authorRichard Turner <63139+zygous@users.noreply.github.com>2023-07-27 09:10:40 +0100
committerGitHub <noreply@github.com>2023-07-27 08:10:40 +0000
commitc0449955e38da95a88893337bef0b004e135e177 (patch)
treeca3c9ef9212a00549d107c17baa999ccf38a0dd9 /atuin-client/src/settings.rs
parentBump config from 0.13.2 to 0.13.3 (#646) (diff)
downloadatuin-c0449955e38da95a88893337bef0b004e135e177.zip
use Ctrl-n instead of Alt-n on macOS (#1106)
* use Ctrl-n instead of Alt-n on macOS * make ctrl-n instead of alt-n configurable
Diffstat (limited to 'atuin-client/src/settings.rs')
-rw-r--r--atuin-client/src/settings.rs2
1 files changed, 2 insertions, 0 deletions
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("_")