diff --git a/CHANGELOG.md b/CHANGELOG.md index 00120402..c82288ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/config.c b/config.c index 293f05b8..3385afde 100644 --- a/config.c +++ b/config.c @@ -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, }, diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index a97ed0d9..3a057d88 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -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 diff --git a/foot.ini b/foot.ini index d00de0fd..44ed5785 100644 --- a/foot.ini +++ b/foot.ini @@ -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 diff --git a/tests/test-config.c b/tests/test-config.c index bab57788..8c0805f4 100644 --- a/tests/test-config.c +++ b/tests/test-config.c @@ -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);