Skip to content

Commit 23c16d4

Browse files
committed
feat(Session): Add HookMixin
1 parent 6b9a34c commit 23c16d4

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
@@ -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 HookMixin
1819
from libtmux.neo import Obj, fetch_obj, fetch_objs
1920
from libtmux.options import OptionMixin
2021
from libtmux.pane import Pane
@@ -37,7 +38,12 @@
3738

3839

3940
@dataclasses.dataclass()
40-
class Session(Obj, EnvironmentMixin, OptionMixin):
41+
class Session(
42+
Obj,
43+
EnvironmentMixin,
44+
OptionMixin,
45+
HookMixin,
46+
):
4147
""":term:`tmux(1)` :term:`Session` [session_manual]_.
4248
4349
Holds :class:`Window` objects.
@@ -74,6 +80,7 @@ class Session(Obj, EnvironmentMixin, OptionMixin):
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)