Skip to content

Commit be95221

Browse files
committed
feat(Session): Add HooksMixin
1 parent 575e9f7 commit be95221

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
@@ -41,7 +42,12 @@
4142

4243

4344
@dataclasses.dataclass()
44-
class Session(Obj, EnvironmentMixin, OptionsMixin):
45+
class Session(
46+
Obj,
47+
EnvironmentMixin,
48+
OptionsMixin,
49+
HooksMixin,
50+
):
4551
""":term:`tmux(1)` :term:`Session` [session_manual]_.
4652
4753
Holds :class:`Window` objects.
@@ -78,6 +84,7 @@ class Session(Obj, EnvironmentMixin, OptionsMixin):
7884
"""
7985

8086
default_option_scope: OptionScope | None = None
87+
default_hook_scope: OptionScope | None = None
8188
server: Server
8289

8390
def refresh(self) -> None:

0 commit comments

Comments
 (0)