Skip to content

Commit 179ec3c

Browse files
committed
feat(constants): Add ResizeAdjustmentDirection
1 parent d5b9a49 commit 179ec3c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/libtmux/constants.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""Constant variables for libtmux."""
2+
import enum
3+
import typing as t
4+
5+
6+
class ResizeAdjustmentDirection(enum.Enum):
7+
"""Used for *adjustment* in ``resize_window``, ``resize_pane``."""
8+
9+
Up = "UP"
10+
Down = "DOWN"
11+
Left = "LEFT"
12+
Right = "RIGHT"
13+
14+
15+
RESIZE_ADJUSTMENT_DIRECTION_FLAG_MAP: t.Dict[ResizeAdjustmentDirection, str] = {
16+
ResizeAdjustmentDirection.Up: "-U",
17+
ResizeAdjustmentDirection.Down: "-D",
18+
ResizeAdjustmentDirection.Left: "-L",
19+
ResizeAdjustmentDirection.Right: "-R",
20+
}

0 commit comments

Comments
 (0)