mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
config: move url-mode related options to a dedicated section, ‘url’
This commit is contained in:
parent
28d27f49bf
commit
0f483d65ce
7 changed files with 140 additions and 51 deletions
|
|
@ -93,7 +93,7 @@ activate_url(struct seat *seat, struct terminal *term, const struct url *url)
|
|||
}
|
||||
|
||||
if (spawn_expand_template(
|
||||
&term->conf->url_launch, 1,
|
||||
&term->conf->url.launch, 1,
|
||||
(const char *[]){"url"},
|
||||
(const char *[]){url_string},
|
||||
&argc, &argv))
|
||||
|
|
@ -405,7 +405,7 @@ osc8_uris(const struct terminal *term, enum url_action action, url_list_t *urls)
|
|||
{
|
||||
bool dont_touch_url_attr = false;
|
||||
|
||||
switch (term->conf->osc8_underline) {
|
||||
switch (term->conf->url.osc8_underline) {
|
||||
case OSC8_UNDERLINE_URL_MODE:
|
||||
dont_touch_url_attr = false;
|
||||
break;
|
||||
|
|
@ -484,7 +484,7 @@ static void
|
|||
generate_key_combos(const struct config *conf,
|
||||
size_t count, wchar_t *combos[static count])
|
||||
{
|
||||
const wchar_t *alphabet = conf->jump_label_letters;
|
||||
const wchar_t *alphabet = conf->url.label_letters;
|
||||
const size_t alphabet_len = wcslen(alphabet);
|
||||
|
||||
size_t hints_count = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue