On this page
io.github.libtmux.CommandChain.CommandChain
- Module
- io.github.libtmux.CommandChain
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/CommandChain.java
-
A sequence of tmux commands where each one acts on what the last one made.
<p>tmux moves its own current target as a group runs: a
new-windowmakes the new window current, a followingsplit-windowsplits that window, and a followingsend-keystypes into the pane that split produced. None of these steps names a target, and that is the point — the alternative is a round trip per step to learn the id of the thing just created.<p>The whole chain is one tmux invocation, and every step is attributed individually, so a chain that fails halfway says which step failed and which never ran.
9 declared, 0 inherited
Members
- arrange method Arranges the current window.
- CommandChain method
- newWindow method Creates a window and makes it the one following steps act on.
- renameWindow method Renames the current window.
- run method Runs the whole chain in one tmux invocation, attributing each step.
- sendLine method Types a line into the current pane and presses Enter, which is how a command gets run.
- splitLeftRight method Splits the current pane into a left and a right one.
- splitTopBottom method Splits the current pane into a top and a bottom one.
- then method Adds any tmux command, for whatever this class does not name.