You can target individual windows with the :window suffix on the project name, optionally with multiple windows separated by commas. Window names match the name field under windows in your project config.
Syntax#
nux project:window
nux project:window1,window2,...
nux restart project:window
nux restart project:window1,window2,...Starting a subset (root command)#
nux myapp:editor
nux myapp:editor,serverCreates the session with only the listed windows, in the order you list (not necessarily YAML order). Session-level options (env, on_start, on_ready, hooks) still apply; on_start and on_ready run against the first window in your list as the anchor.
If the session already exists, nux selects the first window you listed and attaches (it does not rebuild the session or replay hooks).
You cannot combine :window targets with --run, --layout, or --panes.
Restart#
nux restart myapp:editor
nux restart myapp:editor,serverRecreates the listed window(s) from the project config. The rest of the session stays untouched. With multiple windows, restart runs in the order listed.
If a window name does not exist in the config, nux reports "window not found in config".
When to use selective windows#
- Large projects where you only need a few panes right now.
- Restart when a single window’s process is stuck or you changed its pane commands.
- Iterating on one pane while leaving others untouched.
Notes#
nux stopandnux deleteoperate on the project name only;blog:editorstops or deletes theblogproject/session config, not a single window.- To kill a single window manually without restart, use
tmux kill-window -t session:window. nux restartsupports multiple targets, glob patterns (+), and@groupexpansion.