mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-19 06:46:24 -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
|
|
@ -283,7 +283,8 @@ urls_input(struct seat *seat, struct terminal *term,
|
|||
|
||||
if (match) {
|
||||
// If the last hint character was uppercase, copy and paste
|
||||
activate_url(seat, term, match, serial, wc == toc32upper(wc));
|
||||
bool insert = term->conf->uppercase_regex_insert && wc == toc32upper(wc);
|
||||
activate_url(seat, term, match, serial, insert);
|
||||
|
||||
switch (match->action) {
|
||||
case URL_ACTION_COPY:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue