kitty @ ls: Also report layout options
This commit is contained in:
@@ -28,6 +28,9 @@ class LayoutOpts:
|
||||
def __init__(self, data: Dict[str, str]):
|
||||
pass
|
||||
|
||||
def serialized(self) -> Dict[str, Any]:
|
||||
return {}
|
||||
|
||||
|
||||
class LayoutData(NamedTuple):
|
||||
content_pos: int = 0
|
||||
|
||||
@@ -388,6 +388,9 @@ class SplitsLayoutOpts(LayoutOpts):
|
||||
def __init__(self, data: Dict[str, str]):
|
||||
self.default_axis_is_horizontal = data.get('split_axis', 'horizontal') == 'horizontal'
|
||||
|
||||
def serialized(self) -> Dict[str, Any]:
|
||||
return {'default_axis_is_horizontal': self.default_axis_is_horizontal}
|
||||
|
||||
|
||||
class Splits(Layout):
|
||||
name = 'splits'
|
||||
|
||||
@@ -72,6 +72,9 @@ class TallLayoutOpts(LayoutOpts):
|
||||
self.bias = tuple(repeat(b / fs, fs)) + (1.0 - b,)
|
||||
self.mirrored = to_bool(data.get('mirrored', 'false'))
|
||||
|
||||
def serialized(self) -> Dict[str, Any]:
|
||||
return {'full_size': self.full_size, 'bias': self.bias, 'mirrored': self.mirrored}
|
||||
|
||||
|
||||
class Tall(Layout):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user