Use 32-bit char comparison, update docs.

This commit is contained in:
Ryan Roden-Corrent 2025-04-30 06:44:52 -04:00
parent 984d3925d3
commit a5c43df2d5
No known key found for this signature in database
GPG key ID: 435D8B10692555C9
3 changed files with 9 additions and 4 deletions

View file

@ -83,6 +83,8 @@
- paper-color - paper-color
- selenized - selenized
- solarized - solarized
* `regex-copy`/`show-urls-copy` will copy and paste the selected text if the hint
is completed with an uppercase character.
[2025]: https://codeberg.org/dnkl/foot/issues/2025 [2025]: https://codeberg.org/dnkl/foot/issues/2025

View file

@ -1348,7 +1348,8 @@ e.g. *search-start=none*.
*show-urls-launch* *show-urls-launch*
Enter URL mode, where all currently visible URLs are tagged with a Enter URL mode, where all currently visible URLs are tagged with a
jump label with a key sequence that will open the URL (and exit jump label with a key sequence that will open the URL (and exit
URL mode). Default: _Control+Shift+o_. URL mode). If the hint is completed with an uppercase character,
the match will also be pasted. Default: _Control+Shift+o_.
*show-urls-persistent* *show-urls-persistent*
Similar to *show-urls-launch*, but does not automatically exit URL Similar to *show-urls-launch*, but does not automatically exit URL
@ -1380,8 +1381,10 @@ e.g. *search-start=none*.
Default: _none_. Default: _none_.
*regex-copy* *regex-copy*
Same as *regex-copy*, but the match is placed in the clipboard, Same as *regex-launch*, but the match is placed in the clipboard,
instead of "launched", upon activation. Default: _none_. instead of "launched", upon activation. If the hint is completed
with an uppercase character, the match will also be pasted.
Default: _none_.
*prompt-prev* *prompt-prev*
Jump to the previous, currently not visible, prompt (requires Jump to the previous, currently not visible, prompt (requires

View file

@ -278,7 +278,7 @@ urls_input(struct seat *seat, struct terminal *term,
switch (match->action) { switch (match->action) {
case URL_ACTION_COPY: case URL_ACTION_COPY:
// If the last hint character was uppercase, copy and paste // If the last hint character was uppercase, copy and paste
if (wc >= 'A' && wc <= 'Z') { if (wc == toc32upper(wc)) {
if (term->bracketed_paste) if (term->bracketed_paste)
term_to_slave(term, "\033[200~", 6); term_to_slave(term, "\033[200~", 6);