Use a tuple for clipboard control
Avoids churn in the generated options files as python randomized set ordering
This commit is contained in:
2
kitty/options/types.py
generated
2
kitty/options/types.py
generated
@@ -451,7 +451,7 @@ class Options:
|
|||||||
box_drawing_scale: typing.Tuple[float, float, float, float] = (0.001, 1.0, 1.5, 2.0)
|
box_drawing_scale: typing.Tuple[float, float, float, float] = (0.001, 1.0, 1.5, 2.0)
|
||||||
clear_all_shortcuts: bool = False
|
clear_all_shortcuts: bool = False
|
||||||
click_interval: float = -1.0
|
click_interval: float = -1.0
|
||||||
clipboard_control: typing.FrozenSet[str] = frozenset({'write-clipboard', 'write-primary'})
|
clipboard_control: typing.Tuple[str, ...] = ('write-clipboard', 'write-primary')
|
||||||
close_on_child_death: bool = False
|
close_on_child_death: bool = False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from typing import (
|
from typing import (
|
||||||
Any, Callable, Dict, FrozenSet, Iterable, List, Optional, Sequence, Tuple,
|
Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Union
|
||||||
Union
|
|
||||||
)
|
)
|
||||||
|
|
||||||
import kitty.fast_data_types as defines
|
import kitty.fast_data_types as defines
|
||||||
@@ -630,8 +629,8 @@ def allow_remote_control(x: str) -> str:
|
|||||||
return x
|
return x
|
||||||
|
|
||||||
|
|
||||||
def clipboard_control(x: str) -> FrozenSet[str]:
|
def clipboard_control(x: str) -> Tuple[str, ...]:
|
||||||
return frozenset(x.lower().split())
|
return tuple(x.lower().split())
|
||||||
|
|
||||||
|
|
||||||
def allow_hyperlinks(x: str) -> int:
|
def allow_hyperlinks(x: str) -> int:
|
||||||
|
|||||||
Reference in New Issue
Block a user