hook tmux3.7c
after-new-window
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
- Scope
- session
- Set
-
set-hookafter-new-window command - Read
-
show-hooksafter-new-window - Runs
- After
new-windowcompletes
Description#
A command's after hook is run after it completes, except when the command is run as part of a hook itself. They are named with an ‘
after-’ prefix. For example, the following command adds a hook to select the even-vertical layout after every split-window:Every command that has an after hook shares this text.
Releases#
Source#
- Defined in
options-table.c:1658- Fired from
-
cmd-new-window.c:163incmdq_insert_hook -
cmd-queue.c:662incmdq_insert_hook
-
- C source reference
options_table,cmdq_insert_hook- CLI Manual
- Original manual entry
Used by#
Library documentation that names this hook.
- Rust
options.generated.AFTER_NEW_WINDOW,options.option_schema,pane.Pane.set_hook,server.Server.set_hook,session.Session.set_hook,window.Window.set_hook- Go
tmux.ServerHookValues.AfterNewWindow,tmux.SessionHookValues.AfterNewWindow- Java
io.github.libtmux.Hooks.all- Swift
Server.setHook(_:to:at:in:),TmuxHook.name