Skip to content

Commit 7c299ff

Browse files
committed
feat(Session): Add HooksMixin
1 parent cea1b13 commit 7c299ff

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/libtmux/session.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Pythonization of the :term:`tmux(1)` session.
1+
"""Pythonization of the :term:`tmux(1` session.
22
33
libtmux.session
44
~~~~~~~~~~~~~~~
@@ -17,6 +17,7 @@
1717
from libtmux.common import tmux_cmd
1818
from libtmux.constants import WINDOW_DIRECTION_FLAG_MAP, OptionScope, WindowDirection
1919
from libtmux.formats import FORMAT_SEPARATOR
20+
from libtmux.hooks import HooksMixin
2021
from libtmux.neo import Obj, fetch_obj, fetch_objs
2122
from libtmux.options import OptionsMixin
2223
from libtmux.pane import Pane
@@ -50,7 +51,12 @@
5051

5152

5253
@dataclasses.dataclass()
53-
class Session(Obj, EnvironmentMixin, OptionsMixin):
54+
class Session(
55+
Obj,
56+
EnvironmentMixin,
57+
OptionsMixin,
58+
HooksMixin,
59+
):
5460
""":term:`tmux(1)` :term:`Session` [session_manual]_.
5561
5662
Holds :class:`Window` objects.
@@ -94,6 +100,7 @@ class Session(Obj, EnvironmentMixin, OptionsMixin):
94100
"""
95101

96102
default_option_scope: OptionScope | None = None
103+
default_hook_scope: OptionScope | None = None
97104
server: Server
98105

99106
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)