diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-02-03 08:05:46 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-02-05 12:35:17 +0000 |
| commit | 9d0f5cbd2ac0457ef825cb1553d68c35f76e3dcd (patch) | |
| tree | bd91246bdb92c46ccb0787e80350037f8fe5c65e /foot.ini | |
| parent | config+url: add support for user-defined regex patterns (diff) | |
foot.ini: improve documentation of custom regex
Diffstat (limited to 'foot.ini')
| -rw-r--r-- | foot.ini | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -71,9 +71,17 @@ # osc8-underline=url-mode # regex=([a-z][[:alnum:]-]+:(/{1,3}|[a-z0-9%])|www[:digit:]{0,3}[.])([^[:space:](){}<>]+|\(([^[:space:](){}<>]+|(\([^[:space:](){}<>]+\)))*\)|\[([^]\[[:space:](){}<>]+|(\[[^]\[[:space:](){}<>]+\]))*\])+(\(([^[:space:](){}<>]+|(\([^[:space:](){}<>]+\)))*\)|\[([^]\[[:space:](){}<>]+|(\[[^]\[[:space:](){}<>]+\]))*\]|[^]\[[:space:]`!(){};:'".,<>?«»“”‘’]) +# You can define your own regex's, by adding a section called +# 'regex:<ID>' with a 'regex' and 'launch' key. These can then be tied +# to a key-binding: + # [regex:your-fancy-name] # regex=<a POSIX-Extended Regular Expression> # launch=<path to script or application> {match} +# +# [key-bindings] +# regex-launch=[your-fancy-name] Control+Shift+q +# regex-copy=[your-fancy-name] Control+Alt+Shift+q [cursor] # style=block |
