We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 568d3ca commit ec8abe2Copy full SHA for ec8abe2
tests/fixtures/pluginsystem/plugins/tmuxp_test_plugin_owc/tmuxp_test_plugin_owc/plugin.py
@@ -1,3 +1,4 @@
1
+"""Tmuxp example plugin for on_window_create."""
2
import typing as t
3
4
from tmuxp.plugin import TmuxpPlugin
@@ -7,10 +8,13 @@
7
8
9
10
class PluginOnWindowCreate(TmuxpPlugin):
11
+ """Tmuxp plugin to test custom functionality on window creation."""
12
+
13
def __init__(self) -> None:
14
self.message: str = "[+] This is the Tmuxp Test Plugin"
15
16
def on_window_create(self, window: "Window") -> None:
17
+ """Apply hook that runs for tmux on session reattach."""
18
if window.name == "editor":
19
window.rename_window("plugin_test_owc")
20
elif window.name == "owc_mw_test":
0 commit comments