Comment by __MatrixMan__

18 hours ago

Zellij handles this, if you click and drag vertically within a pane the selection will stay in that pane even if there's a different pane to either side. Copy happens when you un-click. (Or at least it does this with Wezterm. I wouldn't be surprised if some terminals don't support whatever voodoo zellij is doing to alter the selection behavior).

You can't select arbitrary columns within a pane (like you can in vim) but if I'm understanding you that's not what you're after anyhow.

you read that right, i am only asking for the ability to select within one app window/pane instead of the selection going across the whole terminal. good to know that zellij can do that. and actually, i have seen vim being able to do that too, except the selection stayed within vim and was not going to the X11/wayland selection. since it turns out there is now an in-band method for terminal apps to write to the X11/wayland selection (as mentioned elsewhere in this discussion) it makes sense that this should solve the problem. and i am sure this is what zellij is using. now hopefully tmux can use it too.