Skip to content

Commit 38ff2e4

Browse files
committed
feat(Pane): Add HooksMixin
1 parent 65c5147 commit 38ff2e4

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

@@ -37,7 +38,11 @@
3738

3839

3940
@dataclasses.dataclass()
40-
class Pane(Obj, OptionsMixin):
41+
class Pane(
42+
Obj,
43+
OptionsMixin,
44+
HooksMixin,
45+
):
4146
""":term:`tmux(1)` :term:`Pane` [pane_manual]_.
4247
4348
``Pane`` instances can send commands directly to a pane, or traverse
@@ -78,6 +83,7 @@ class Pane(Obj, OptionsMixin):
7883
"""
7984

8085
default_option_scope: OptionScope | None = OptionScope.Pane
86+
default_hook_scope: OptionScope | None = OptionScope.Pane
8187
server: Server
8288

8389
def refresh(self) -> None:

0 commit comments

Comments
 (0)