session_split
Split a session's window into a new pane and session, shown together, with shell integration and logging by default. Use for running two tasks at once, like tests and gdb.
Instructions
Split a session's window: a new pane beside it, shown together to a
human attached to that window, and a session of its own -- logged
from its first byte, with shell integration (exact exit statuses) by
default. Use it instead of typing tmux split-window, whose pane has
neither until the server adopts it. For two things to watch at
once: a testsuite running in one pane, gdb in the other. Both panes
are addressed by session name; typing never follows the active
pane.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | environment variables set in the new pane | |
| name | No | a name for the new session (default: <window>+1, +2, ...) | |
| size | No | the new pane's size: rows (below) or columns (right), or a percentage such as "50%"; default half | |
| below | No | true: the new pane goes below; false: to the right | |
| command | No | the program to run instead of bash with shell integration, as for session_create | |
| session | Yes | the session whose window to split (its pane is the one split) | |
| prompt_pattern | No | the new session's default prompt regex, as for session_create; rarely needed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |