libtmux Reference MCP Search
On this page

io.github.libtmux.WindowSpec.WindowSpec.Builder

View as Markdown

Module
io.github.libtmux.WindowSpec
Declared in
WindowSpec
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/WindowSpec.java
class io.github.libtmux.WindowSpec.WindowSpec.Builder
classstaticreadonly [source]
classstaticreadonly [source]
class io.github.libtmux.WindowSpec.WindowSpec.Builder

Collects the choices, each named for what it does rather than for the field it sets.

12 declared, 0 inherited

Members

  • after method Puts the window immediately after the current one.
  • atIndex method Creates the window at a chosen index rather than the next one tmux has free.
  • before method Puts the window immediately before the current one.
  • build method The finished spec.
  • detached method Leaves the current window selected, where tmux would move to the new one.
  • env method Sets one variable in the new window's environment.
  • environment method Adds several variables to the new window's environment, keeping any already set.
  • in method Starts the window in this directory. Requires tmux 3.3a.
  • named method Names the window, where tmux would otherwise name it after what runs in it.
  • replaceExisting method Destroys whatever window already sits at the index chosen by #atIndex .
  • reuseExisting method Selects a window that already carries this name rather than making a second.
  • running method Runs a command instead of the session's shell.
Esc

Type to search.