Skip to content

Commit ba44bf1

Browse files
committed
feat(Pane): Add HooksMixin
1 parent a623186 commit ba44bf1

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
@@ -21,6 +21,7 @@
2121
ResizeAdjustmentDirection,
2222
)
2323
from libtmux.formats import FORMAT_SEPARATOR
24+
from libtmux.hooks import HooksMixin
2425
from libtmux.neo import Obj, fetch_obj
2526
from libtmux.options import OptionsMixin
2627

@@ -36,7 +37,11 @@
3637

3738

3839
@dataclasses.dataclass()
39-
class Pane(Obj, OptionsMixin):
40+
class Pane(
41+
Obj,
42+
OptionsMixin,
43+
HooksMixin,
44+
):
4045
""":term:`tmux(1)` :term:`Pane` [pane_manual]_.
4146
4247
``Pane`` instances can send commands directly to a pane, or traverse
@@ -77,6 +82,7 @@ class Pane(Obj, OptionsMixin):
7782
"""
7883

7984
default_option_scope: t.Optional[OptionScope] = OptionScope.Pane
85+
default_hook_scope: t.Optional[OptionScope] = OptionScope.Pane
8086
server: "Server"
8187

8288
def refresh(self) -> None:

0 commit comments

Comments
 (0)