wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

tmux -CC does not react to `tmux split-window`

Open mawww opened this issue 9 months ago • 7 comments

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

mawww avatar Mar 25 '25 22:03 mawww

Use wezterm command to do that, the purpose is tmux -CC is to use local command/render to wrap /replace tmux native command/render.

joexue avatar Mar 26 '25 20:03 joexue

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.

mawww avatar Mar 31 '25 22:03 mawww

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.

Click the ‘+’ on the tab of wezterm then you have a tmux new window, is that harder than you type “ tmux new-window”?

joexue avatar Apr 01 '25 14:04 joexue

[...] 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

bew avatar Apr 01 '25 19:04 bew

[...] 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.

joexue avatar Apr 02 '25 15:04 joexue

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!

wez avatar May 17 '25 16:05 wez

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.

joexue avatar May 29 '25 19:05 joexue