Update uppercase-regex-insert for PR feedback.

- Default to `true`
- Note default value in config
- Fix changelog link
- Add config test
This commit is contained in:
Ryan Roden-Corrent 2025-08-30 17:42:58 -04:00
parent 2a796d77e3
commit 4d19e829b3
No known key found for this signature in database
GPG key ID: 435D8B10692555C9
5 changed files with 6 additions and 3 deletions

View file

@ -70,7 +70,7 @@
* The `uppercase-regex-insert` option controls whether an uppercase hint
character will insert the selected text into the prompt in `regex-copy`
or `show-urls-copy` mode. ([#2159]2159[]).
or `show-urls-copy` mode. It defaults to `true`. ([#2159][2159]).
[2159]: https://codeberg.org/dnkl/foot/issues/2159

View file

@ -3378,7 +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,
.uppercase_regex_insert = true,
.security = {
.osc52 = OSC52_ENABLED,
},

View file

@ -236,6 +236,8 @@ empty string to be set, but it must be quoted: *KEY=""*)
*show-urls-copy* or *regex-copy* mode will insert the selected
text into the prompt in addition to copying it to the clipboard.
Default: _yes_
*box-drawings-uses-font-glyphs*
Boolean. When disabled, foot generates box/line drawing characters
itself. The are several advantages to doing this instead of using

View file

@ -40,7 +40,7 @@
# utmp-helper=/usr/lib/utempter/utempter # When utmp backend is libutempter (Linux)
# utmp-helper=/usr/libexec/ulog-helper # When utmp backend is ulog (FreeBSD)
# uppercase-regex-insert=no
# uppercase-regex-insert=yes
[environment]
# name=value

View file

@ -491,6 +491,7 @@ test_section_main(void)
test_boolean(&ctx, &parse_section_main, "locked-title", &conf.locked_title);
test_boolean(&ctx, &parse_section_main, "dpi-aware", &conf.dpi_aware);
test_boolean(&ctx, &parse_section_main, "gamma-correct-blending", &conf.gamma_correct);
test_boolean(&ctx, &parse_section_main, "uppercase-regex-insert", &conf.uppercase_regex_insert);
test_pt_or_px(&ctx, &parse_section_main, "font-size-adjustment", &conf.font_size_adjustment.pt_or_px); /* TODO: test N% values too */
test_pt_or_px(&ctx, &parse_section_main, "line-height", &conf.line_height);