aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorRyan Roden-Corrent <git@rrc.codes>2025-08-07 12:18:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-08-31 09:36:28 +0000
commit298196365c06c13dd16a74e34e03d9de93670473 (patch)
tree9ebd7f70ca9ae60799bb369c813df12fb9c3d993 /config.c
parentinput: unit test: check pipe2() return value (diff)
config: add 'uppercase-regex-insert'
This makes the "uppercase hint character inserts selected text" behavior added in #1975 configurable, as it can have unexpected behavior for some users. It defaults to "on", preserving the new behavior of `foot`, after Fixes #2159.
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.c b/config.c
index 1d539bcb..0de1a1be 100644
--- a/config.c
+++ b/config.c
@@ -1119,6 +1119,9 @@ parse_section_main(struct context *ctx)
(int *)&conf->initial_color_theme);
}
+ else if (streq(key, "uppercase-regex-insert"))
+ return value_to_bool(ctx, &conf->uppercase_regex_insert);
+
else {
LOG_CONTEXTUAL_ERR("not a valid option: %s", key);
return false;
@@ -3383,6 +3386,7 @@ config_load(struct config *conf, const char *conf_path,
.strikeout_thickness = {.pt = 0., .px = -1},
.dpi_aware = false,
.gamma_correct = false,
+ .uppercase_regex_insert = true,
.security = {
.osc52 = OSC52_ENABLED,
},