mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 21:45:03 +02:00
Add url_excluded_characters option to exclude characters from URLs.
This option, like select_by_word_characters, is a set of characters, but for which to *exclude* from URL parsing. See https://github.com/kovidgoyal/kitty/issues/3688#issuecomment-862711148.
This commit is contained in:
3
kitty/options/parse.py
generated
3
kitty/options/parse.py
generated
@@ -1206,6 +1206,9 @@ class Parser:
|
||||
def url_color(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||
ans['url_color'] = to_color(val)
|
||||
|
||||
def url_excluded_characters(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||
ans['url_excluded_characters'] = str(val)
|
||||
|
||||
def url_prefixes(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||
ans['url_prefixes'] = url_prefixes(val)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user