Skip to content

Commit 3fd98ee

Browse files
committed
feat(Pane): Add HooksMixin
1 parent a65dcf1 commit 3fd98ee

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
@@ -23,6 +23,7 @@
2323
ResizeAdjustmentDirection,
2424
)
2525
from libtmux.formats import FORMAT_SEPARATOR
26+
from libtmux.hooks import HooksMixin
2627
from libtmux.neo import Obj, fetch_obj
2728
from libtmux.options import OptionsMixin
2829

@@ -45,7 +46,11 @@
4546

4647

4748
@dataclasses.dataclass()
48-
class Pane(Obj, OptionsMixin):
49+
class Pane(
50+
Obj,
51+
OptionsMixin,
52+
HooksMixin,
53+
):
4954
""":term:`tmux(1)` :term:`Pane` [pane_manual]_.
5055
5156
``Pane`` instances can send commands directly to a pane, or traverse
@@ -93,6 +98,7 @@ class Pane(Obj, OptionsMixin):
9398
"""
9499

95100
default_option_scope: OptionScope | None = OptionScope.Pane
101+
default_hook_scope: OptionScope | None = OptionScope.Pane
96102
server: Server
97103

98104
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)