tmuxp.plugin.TmuxpPlugin
-
Base class for a tmuxp plugin.
Members
-
Initialize plugin.
Description#
The default version values are set to the versions that the plugin system requires.
- Parameters
-
Provide a session hook previous to creating the workspace.
Description#
This runs after the session has been created but before any of the windows/panes/commands are entered.
Discussed in Bootstrap scripts and extensions
-
Provide a window hook previous to doing anything with a window.
Description#
This runs runs before anything is created in the windows, like panes.
Discussed in Bootstrap scripts and extensions
-
Provide a window hook after creating the window.
Description#
This runs after everything has been created in the window, including the panes and all of the commands for the panes. It also runs after the
options_afterhas been applied to the window.Discussed in Bootstrap scripts and extensions
-
Provide a session hook after the workspace has been built.
Description#
This runs after the workspace has been loaded with
tmuxp load. It augments instead of replaces thebefore_scriptsection of the workspace data.This hook provides access to the LibTmux.session object for any behavior that would be used in the
before_scriptsection of the workspace file that needs access directly to the session object. This runs after the workspace has been loaded withtmuxp load.The hook augments, rather than replaces, the
before_scriptsection of the workspace. While it is possible to do all of thebefore_scriptworkspace in this function, if a shell script is currently being used for the workspace, it would be cleaner to continue using the script in thebefore_section.If changes to the session need to be made prior to anything being built, please use
before_workspace_builderinstead.
-
Provide a session hook before reattaching to the session.
Discussed in Bootstrap scripts and extensions