fix: escape char

Signed-off-by: d0zingcat <iamtangli42@gmail.com>
This commit is contained in:
2025-12-30 14:10:35 +08:00
parent 225e2f8394
commit 278cc832d9

View File

@@ -65,7 +65,7 @@ bindings = [
alphabet = "jfkdls;ahgurieowpq"
[[hints.enabled]]
regex = '''(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001f\u007f-\u009f<>"\\s{-}\\^⟨⟩`]+'''
regex = '''(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|http(s?)://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001f\u007f-\u009f<>"\\^⟨⟩`]+'''
command = "open"
post_processing = true
@@ -83,3 +83,8 @@ bindings = [
{ key = "Tab", mods = "Control", action = "SelectNextTab" },
{ key = "Tab", mods = "Control|Shift", action = "SelectPreviousTab" },
]
[[keyboard.bindings]]
key = "Return"
mods = "Shift"
chars = "\u001b\r"