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