We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
direction
1 parent 3c086cf commit 76cec6fCopy full SHA for 76cec6f
src/libtmux/constants.py
@@ -32,3 +32,21 @@ class WindowDirection(enum.Enum):
32
WindowDirection.Before: "-b",
33
WindowDirection.After: "-a",
34
}
35
+
36
37
+class PaneDirection(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
+PANE_DIRECTION_FLAG_MAP: t.Dict[PaneDirection, t.List[str]] = {
47
+ # -v is assumed, but for explicitness it is passed
48
+ PaneDirection.Above: ["-v", "-b"],
49
+ PaneDirection.Below: ["-v"],
50
+ PaneDirection.Right: ["-h"],
51
+ PaneDirection.Left: ["-h", "-b"],
52
+}
0 commit comments