mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
foot.ini+doc: add default value of url.regex
This commit is contained in:
parent
d41b28bd02
commit
130b05f02b
3 changed files with 4 additions and 2 deletions
1
config.c
1
config.c
|
|
@ -1239,6 +1239,7 @@ parse_section_url(struct context *ctx)
|
|||
regex_t preg;
|
||||
|
||||
int r = regcomp(&preg, regex, REG_EXTENDED);
|
||||
|
||||
if (r != 0) {
|
||||
char err_buf[128];
|
||||
regerror(r, &preg, err_buf, sizeof(err_buf));
|
||||
|
|
|
|||
|
|
@ -786,7 +786,7 @@ xdgtoken=95ebdfe56e4f47ddb5bba9d7dc3a2c35
|
|||
URL regex to use when auto-detecting URLs. The format is
|
||||
"POSIX-Extended Regular Expressions".
|
||||
|
||||
Default: _TODO_
|
||||
Default: _([a-z][[:alnum:]-]+:(/{1,3}|[a-z0-9%])|www[:digit:]{0,3}[.])([^[:space:](){}<>]+|\(([^[:space:](){}<>]+|(\([^[:space:](){}<>]+\)))\*\)|\[([^]\[[:space:](){}<>]+|(\[[^]\[[:space:](){}<>]+\]))\*\])+(\(([^[:space:](){}<>]+|(\([^[:space:](){}<>]+\)))\*\)|\[([^]\[[:space:](){}<>]+|(\[[^]\[[:space:](){}<>]+\]))\*\]|[^]\[[:space:]`!(){};:'".,<>?«»“”‘’])_
|
||||
|
||||
# SECTION: cursor
|
||||
|
||||
|
|
|
|||
3
foot.ini
3
foot.ini
|
|
@ -69,7 +69,8 @@
|
|||
# launch=xdg-open ${url}
|
||||
# label-letters=sadfjklewcmpgh
|
||||
# osc8-underline=url-mode
|
||||
# regex=TODO
|
||||
# regex=([a-z][[:alnum:]-]+:(/{1,3}|[a-z0-9%])|www[:digit:]{0,3}[.])([^[:space:](){}<>]+|\(([^[:space:](){}<>]+|(\([^[:space:](){}<>]+\)))*\)|\[([^]\[[:space:](){}<>]+|(\[[^]\[[:space:](){}<>]+\]))*\])+(\(([^[:space:](){}<>]+|(\([^[:space:](){}<>]+\)))*\)|\[([^]\[[:space:](){}<>]+|(\[[^]\[[:space:](){}<>]+\]))*\]|[^]\[[:space:]`!(){};:'".,<>?«»“”‘’])
|
||||
|
||||
|
||||
|
||||
[cursor]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue