config: move url-mode related options to a dedicated section, ‘url’

This commit is contained in:
Daniel Eklöf 2021-05-20 17:56:56 +02:00
parent 28d27f49bf
commit 0f483d65ce
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 140 additions and 51 deletions

View file

@ -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;