aboutsummaryrefslogtreecommitdiff
path: root/foot.ini
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-02-05 12:47:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-02-05 12:47:06 +0000
commitdd01783f88902b8e33820c838fc4e6aba122b578 (patch)
tree627a273b617d4c7dd1400f45c5e35db08e526830 /foot.ini
parentbox-drawings: handle architecture with soft-float (diff)
parentchangelog: custom regex's (diff)
Merge branch 'regex-mode'
Closes #1386 Closes #1872
Diffstat (limited to 'foot.ini')
-rw-r--r--foot.ini15
1 files changed, 13 insertions, 2 deletions
diff --git a/foot.ini b/foot.ini
index 17fabd3d..a1aa118c 100644
--- a/foot.ini
+++ b/foot.ini
@@ -69,8 +69,19 @@
# launch=xdg-open ${url}
# label-letters=sadfjklewcmpgh
# osc8-underline=url-mode
-# protocols=http, https, ftp, ftps, file, gemini, gopher
-# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]
+# 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. See foot.ini(5) for details
+
+# [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