Skip to content

Commit 4a2e8ad

Browse files
committed
feat(Session): Add HooksMixin
1 parent 99acdeb commit 4a2e8ad

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/libtmux/session.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
@@ -48,7 +49,12 @@
4849

4950

5051
@dataclasses.dataclass()
51-
class Session(Obj, EnvironmentMixin, OptionsMixin):
52+
class Session(
53+
Obj,
54+
EnvironmentMixin,
55+
OptionsMixin,
56+
HooksMixin,
57+
):
5258
""":term:`tmux(1)` :term:`Session` [session_manual]_.
5359
5460
Holds :class:`Window` objects.
@@ -92,6 +98,7 @@ class Session(Obj, EnvironmentMixin, OptionsMixin):
9298
"""
9399

94100
default_option_scope: OptionScope | None = None
101+
default_hook_scope: OptionScope | None = None
95102
server: Server
96103

97104
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)