mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 15:08:13 +02:00
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)
|
||||
clear_all_shortcuts: bool = False
|
||||
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
|
||||
|
||||
@property
|
||||
|
||||
@@ -7,8 +7,7 @@ import os
|
||||
import re
|
||||
import sys
|
||||
from typing import (
|
||||
Any, Callable, Dict, FrozenSet, Iterable, List, Optional, Sequence, Tuple,
|
||||
Union
|
||||
Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Union
|
||||
)
|
||||
|
||||
import kitty.fast_data_types as defines
|
||||
@@ -630,8 +629,8 @@ def allow_remote_control(x: str) -> str:
|
||||
return x
|
||||
|
||||
|
||||
def clipboard_control(x: str) -> FrozenSet[str]:
|
||||
return frozenset(x.lower().split())
|
||||
def clipboard_control(x: str) -> Tuple[str, ...]:
|
||||
return tuple(x.lower().split())
|
||||
|
||||
|
||||
def allow_hyperlinks(x: str) -> int:
|
||||
|
||||
Reference in New Issue
Block a user