tmux -CC does not react to `tmux split-window`
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20250320-072107-a8735851
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
tmux -CC support seems to not react to tmux induced layout change
To Reproduce
run tmux -CC, then in the tmux session tmux split-window. observe that no new pane appears, detach from tmux then run tmux -CC attach, observe that we now see the new tmux pane.
Configuration
no config
Expected Behavior
We should immediately see the new pane appear.
Logs
No response
Anything else?
No response
Use wezterm command to do that, the purpose is tmux -CC is to use local command/render to wrap /replace tmux native command/render.
This is a surprising answer, it seems to me that the appeal of tmux -CC is that the details of which terminal emulator you actually use (iterm2/wezterm) are abstracted away, I would not expect needing to know if I actually am running in wezterm/iterm2/classical tmux to programatically create a new pane.
This is a surprising answer, it seems to me that the appeal of
tmux -CCis that the details of which terminal emulator you actually use (iterm2/wezterm) are abstracted away, I would not expect needing to know if I actually am running in wezterm/iterm2/classical tmux to programatically create a new pane.
Click the ‘+’ on the tab of wezterm then you have a tmux new window, is that harder than you type “ tmux new-window”?
[...] I would not expect needing to know if I actually am running in wezterm/iterm2/classical tmux to programatically create a new pane.
Click the ‘+’ on the tab of wezterm then you have a tmux new window, is that harder than you type “ tmux new-window”?
@joexue you missed the 'programmatically' part, aka create a pane from a script for example
[...] I would not expect needing to know if I actually am running in wezterm/iterm2/classical tmux to programatically create a new pane.
Click the ‘+’ on the tab of wezterm then you have a tmux new window, is that harder than you type “ tmux new-window”?
@joexue you missed the 'programmatically' part, aka create a pane from a script for example
Right If you use script, for now, you can create all windows you need then attach them. Or somehow use wezterm command (if we have) or Lua script or wezterm shortcut key to do that.
is there no signal from tmux that a split was created? We should respond to and reflect the current state for those sorts of scripted changes too!
is there no signal from tmux that a split was created? We should respond to and reflect the current state for those sorts of scripted changes too!
yes, there is, probably easy to add this into wezterm.
I’ll have a look if this really matters.