Skip to content

Commit afeed63

Browse files
committed
feat(Pane): Add HooksMixin
1 parent 0cc59f2 commit afeed63

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/libtmux/pane.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
ResizeAdjustmentDirection,
2323
)
2424
from libtmux.formats import FORMAT_SEPARATOR
25+
from libtmux.hooks import HooksMixin
2526
from libtmux.neo import Obj, fetch_obj
2627
from libtmux.options import OptionsMixin
2728

@@ -44,7 +45,11 @@
4445

4546

4647
@dataclasses.dataclass()
47-
class Pane(Obj, OptionsMixin):
48+
class Pane(
49+
Obj,
50+
OptionsMixin,
51+
HooksMixin,
52+
):
4853
""":term:`tmux(1)` :term:`Pane` [pane_manual]_.
4954
5055
``Pane`` instances can send commands directly to a pane, or traverse
@@ -92,6 +97,7 @@ class Pane(Obj, OptionsMixin):
9297
"""
9398

9499
default_option_scope: OptionScope | None = OptionScope.Pane
100+
default_hook_scope: OptionScope | None = OptionScope.Pane
95101
server: Server
96102

97103
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)