Skip to content

Commit 1829385

Browse files
committed
constants(WindowDirection): Add enum and map for new-window directions
1 parent ee7aac4 commit 1829385

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/libtmux/constants.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,16 @@ class ResizeAdjustmentDirection(enum.Enum):
1919
ResizeAdjustmentDirection.Left: "-L",
2020
ResizeAdjustmentDirection.Right: "-R",
2121
}
22+
23+
24+
class WindowDirection(enum.Enum):
25+
"""Used for *adjustment* in :meth:`Session.new_window()`."""
26+
27+
Before = "BEFORE"
28+
After = "AFTER"
29+
30+
31+
WINDOW_DIRECTION_FLAG_MAP: t.Dict[WindowDirection, str] = {
32+
WindowDirection.Before: "-b",
33+
WindowDirection.After: "-a",
34+
}

0 commit comments

Comments
 (0)