Skip to content

Commit efe537f

Browse files
committed
feat(Session): Add HooksMixin
1 parent 0e9831f commit efe537f

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
~~~~~~~~~~~~~~~
@@ -15,6 +15,7 @@
1515
from libtmux.common import tmux_cmd
1616
from libtmux.constants import WINDOW_DIRECTION_FLAG_MAP, OptionScope, WindowDirection
1717
from libtmux.formats import FORMAT_SEPARATOR
18+
from libtmux.hooks import HooksMixin
1819
from libtmux.neo import Obj, fetch_obj, fetch_objs
1920
from libtmux.options import OptionsMixin
2021
from libtmux.pane import Pane
@@ -37,7 +38,12 @@
3738

3839

3940
@dataclasses.dataclass()
40-
class Session(Obj, EnvironmentMixin, OptionsMixin):
41+
class Session(
42+
Obj,
43+
EnvironmentMixin,
44+
OptionsMixin,
45+
HooksMixin,
46+
):
4147
""":term:`tmux(1)` :term:`Session` [session_manual]_.
4248
4349
Holds :class:`Window` objects.
@@ -74,6 +80,7 @@ class Session(Obj, EnvironmentMixin, OptionsMixin):
7480
"""
7581

7682
default_option_scope: t.Optional[OptionScope] = None
83+
default_hook_scope: t.Optional[OptionScope] = None
7784
server: "Server"
7885

7986
def refresh(self) -> None:

0 commit comments

Comments
 (0)