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.
1 parent 02727a7 commit ca39170Copy full SHA for ca39170
src/libtmux/constants.py
@@ -51,3 +51,28 @@ class PaneDirection(enum.Enum):
51
PaneDirection.Right: ["-h"],
52
PaneDirection.Left: ["-h", "-b"],
53
}
54
+
55
56
+class _DefaultOptionScope:
57
+ # Sentinel value for default scope
58
+ ...
59
60
61
+DEFAULT_OPTION_SCOPE: _DefaultOptionScope = _DefaultOptionScope()
62
63
64
+class OptionScope(enum.Enum):
65
+ """Scope used with ``set-option`` and ``show-option(s)`` commands."""
66
67
+ Server = "SERVER"
68
+ Session = "SESSION"
69
+ Window = "WINDOW"
70
+ Pane = "PANE"
71
72
73
+OPTION_SCOPE_FLAG_MAP: dict[OptionScope, str] = {
74
+ OptionScope.Server: "-s",
75
+ OptionScope.Session: "",
76
+ OptionScope.Window: "-w",
77
+ OptionScope.Pane: "-p",
78
+}
0 commit comments