mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Also output layout state in kitty @ ls
This commit is contained in:
@@ -6,7 +6,7 @@ from functools import lru_cache
|
||||
from itertools import repeat
|
||||
from math import ceil, floor
|
||||
from typing import (
|
||||
Callable, Dict, Generator, List, Optional, Sequence, Set, Tuple
|
||||
Any, Callable, Dict, Generator, List, Optional, Sequence, Set, Tuple
|
||||
)
|
||||
|
||||
from kitty.borders import BorderColor
|
||||
@@ -294,3 +294,9 @@ class Grid(Layout):
|
||||
'left': side(row, col, -1) if col else [],
|
||||
'right': side(row, col, 1) if col < ncols - 1 else [],
|
||||
}
|
||||
|
||||
def layout_state(self) -> Dict[str, Any]:
|
||||
return {
|
||||
'biased_cols': self.biased_cols,
|
||||
'biased_rows': self.biased_rows
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user