mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -04:00
Add uppercase-regex-insert config option.
Fixes #2159. 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 "off", preserving the original behavior of `foot` before #1975.
This commit is contained in:
parent
72d9a13c0c
commit
2a796d77e3
6 changed files with 21 additions and 1 deletions
4
config.c
4
config.c
|
|
@ -1111,6 +1111,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;
|
||||
|
|
@ -3375,6 +3378,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 = false,
|
||||
.security = {
|
||||
.osc52 = OSC52_ENABLED,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue