...
This commit is contained in:
parent
e9ea7b13b6
commit
3c709a28f7
@ -120,6 +120,8 @@ def generate_class(defn: Definition, loc: str) -> Tuple[str, str]:
|
|||||||
tc_imports.add((func.__module__, func.__name__))
|
tc_imports.add((func.__module__, func.__name__))
|
||||||
|
|
||||||
defval = repr(func(option.defval_as_string))
|
defval = repr(func(option.defval_as_string))
|
||||||
|
if len(defval) > 100:
|
||||||
|
defval += ' # noqa'
|
||||||
if option.macos_defval is not unset:
|
if option.macos_defval is not unset:
|
||||||
md = repr(func(option.macos_defval))
|
md = repr(func(option.macos_defval))
|
||||||
defval = f'{md} if is_macos else {defval}'
|
defval = f'{md} if is_macos else {defval}'
|
||||||
|
|||||||
2
kitty/options/parse.py
generated
2
kitty/options/parse.py
generated
@ -1030,7 +1030,7 @@ class Parser:
|
|||||||
ans['macos_hide_from_tasks'] = to_bool(val)
|
ans['macos_hide_from_tasks'] = to_bool(val)
|
||||||
|
|
||||||
def macos_menubar_title_max_length(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
def macos_menubar_title_max_length(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||||
ans['macos_menubar_title_max_length'] = int(val)
|
ans['macos_menubar_title_max_length'] = positive_int(val)
|
||||||
|
|
||||||
def macos_option_as_alt(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
def macos_option_as_alt(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
|
||||||
ans['macos_option_as_alt'] = macos_option_as_alt(val)
|
ans['macos_option_as_alt'] = macos_option_as_alt(val)
|
||||||
|
|||||||
4
kitty/options/types.py
generated
4
kitty/options/types.py
generated
@ -517,7 +517,7 @@ class Options:
|
|||||||
listen_on: str = 'none'
|
listen_on: str = 'none'
|
||||||
macos_custom_beam_cursor: bool = False
|
macos_custom_beam_cursor: bool = False
|
||||||
macos_hide_from_tasks: bool = False
|
macos_hide_from_tasks: bool = False
|
||||||
macos_menubar_title_max_length: int = -1
|
macos_menubar_title_max_length: int = 0
|
||||||
macos_option_as_alt: int = 0
|
macos_option_as_alt: int = 0
|
||||||
macos_quit_when_last_window_closed: bool = False
|
macos_quit_when_last_window_closed: bool = False
|
||||||
macos_show_window_title_in: choices_for_macos_show_window_title_in = 'all'
|
macos_show_window_title_in: choices_for_macos_show_window_title_in = 'all'
|
||||||
@ -573,7 +573,7 @@ class Options:
|
|||||||
update_check_interval: float = 24.0
|
update_check_interval: float = 24.0
|
||||||
url_color: Color = Color(0, 135, 189)
|
url_color: Color = Color(0, 135, 189)
|
||||||
url_excluded_characters: str = ''
|
url_excluded_characters: str = ''
|
||||||
url_prefixes: typing.Tuple[str, ...] = ('file', 'ftp', 'ftps', 'gemini', 'git', 'gopher', 'http', 'https', 'irc', 'ircs', 'kitty', 'mailto', 'news', 'sftp', 'ssh')
|
url_prefixes: typing.Tuple[str, ...] = ('file', 'ftp', 'ftps', 'gemini', 'git', 'gopher', 'http', 'https', 'irc', 'ircs', 'kitty', 'mailto', 'news', 'sftp', 'ssh') # noqa
|
||||||
url_style: int = 3
|
url_style: int = 3
|
||||||
visual_bell_color: typing.Optional[kitty.fast_data_types.Color] = None
|
visual_bell_color: typing.Optional[kitty.fast_data_types.Color] = None
|
||||||
visual_bell_duration: float = 0
|
visual_bell_duration: float = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user