url-mode+config: wip: add url.regex option

This commit is contained in:
Daniel Eklöf 2025-01-30 12:26:23 +01:00
parent e76d8dd7af
commit d41b28bd02
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 76 additions and 54 deletions

View file

@ -1,7 +1,8 @@
#pragma once
#include <stdint.h>
#include <regex.h>
#include <stdbool.h>
#include <stdint.h>
#include <uchar.h>
#include <xkbcommon/xkbcommon.h>
@ -219,6 +220,9 @@ struct config {
OSC8_UNDERLINE_URL_MODE,
OSC8_UNDERLINE_ALWAYS,
} osc8_underline;
char *regex;
regex_t preg;
} url;
struct {