We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1944da commit e11f0a8Copy full SHA for e11f0a8
src/libtmux/constants.py
@@ -32,3 +32,21 @@ class NewWindowDirection(enum.Enum):
32
NewWindowDirection.Before: "-b",
33
NewWindowDirection.After: "-a",
34
}
35
+
36
37
+class SplitWindowDirection(enum.Enum):
38
+ """Used for *adjustment* in :meth:`Pane.split()`."""
39
40
+ Above = "ABOVE"
41
+ Below = "BELOW" # default with no args
42
+ Right = "RIGHT"
43
+ Left = "LEFT"
44
45
46
+SPLIT_WINDOW_DIRECTION_FLAG_MAP: t.Dict[SplitWindowDirection, t.List[str]] = {
47
+ # -v is assumed, but for explicitness it is passed
48
+ SplitWindowDirection.Above: ["-v", "-b"],
49
+ SplitWindowDirection.Below: ["-v"],
50
+ SplitWindowDirection.Right: ["-h"],
51
+ SplitWindowDirection.Left: ["-h", "-b"],
52
+}
0 commit comments