]> gitweb.fluxo.info Git - rhatto/dotfiles/xsession.git/commitdiff
Fix: alacritty: disable actions on hyperlinks
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 26 Dec 2025 12:34:25 +0000 (09:34 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 26 Dec 2025 12:34:25 +0000 (09:34 -0300)
config.dot/alacritty/alacritty.toml.link
config.dot/alacritty/alacritty.yml.link

index a265a60156ca9de225dd01b35f40bbb369cc81a7..88d0b8a02f4ec45afa0104e0e64bc2e6c7d35f6e 100644 (file)
@@ -80,3 +80,11 @@ bindings = [
   { key = "Home",                chars = "\u001b\u005b\u0037\u007e" },
   { key = "End",                 chars = "\u001b\u005b\u0038\u007e" },
 ]
+
+# Disable actions on hyperlinks
+[[hints.enabled]]
+regex = "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
+        [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
+hyperlinks = true
+command = '/bin/true'
+mouse.enabled = false
index 067cd41415ff4863e65c4e12507b98ca02abbe05..51825ba27ca93748707eccad7b73e3217c994ef1 100644 (file)
@@ -81,3 +81,13 @@ key_bindings:
   - { key: "Down",   mods: "Alt", chars: "\x1b\x1b\x5b\x42" }
   - { key: "Home",                chars: "\x1b\x5b\x37\x7e" }
   - { key: "End",                 chars: "\x1b\x5b\x38\x7e" }
+
+hints:
+  enabled:
+   # Disable actions on hyperlinks
+   - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
+             [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
+     hyperlinks: true
+     command: '/bin/true'
+     mouse:
+       enabled: false