Skip to content

Commit 54dbcef

Browse files
committed
feat(Session): Add HooksMixin
1 parent 9d3aa67 commit 54dbcef

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
@@ -49,7 +50,12 @@
4950

5051

5152
@dataclasses.dataclass()
52-
class Session(Obj, EnvironmentMixin, OptionsMixin):
53+
class Session(
54+
Obj,
55+
EnvironmentMixin,
56+
OptionsMixin,
57+
HooksMixin,
58+
):
5359
""":term:`tmux(1)` :term:`Session` [session_manual]_.
5460
5561
Holds :class:`Window` objects.
@@ -93,6 +99,7 @@ class Session(Obj, EnvironmentMixin, OptionsMixin):
9399
"""
94100

95101
default_option_scope: OptionScope | None = None
102+
default_hook_scope: OptionScope | None = None
96103
server: Server
97104

98105
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)