terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Paste doesn't always work as expected in broadcasted panes

Open stevelipinski opened this issue 1 year ago • 2 comments

The pane broadcast functionality that's currently in preview does not describe nor allow to configure how paste functionality works. Currently, if you paste into a broadcast group of panes using right-click, it only pastes in the pane that the mouse is hovering over. On the other hand, if you paste using Ctrl-v, it inconsistently pastes into some of the broadcast group panes - but usually not all.

It would be nice if there was a configuration option that specified how to handle paste with a broadcast group. And, the Ctrl-v paste should be consistent and either configurable or follow the same behavior as right-click.

stevelipinski avatar Nov 10 '23 15:11 stevelipinski

This sorta sounds a bit like the last bullet point I had tracked in #15812

Broadcast doesn't work if you use context menu paste

That's a bit different - the right-click context menu uses the same paste mechanism as the normal right-click-to-paste. So that should act the same. But then you go and mention:

On the other hand, if you paste using Ctrl-v, it inconsistently pastes into some of the broadcast group panes - but usually not all

And that, I don't think we had tracked anywhere. We can probably use this to track both issues (I'd bet they have the same resolution). Could you elaborate more on the "aCtrl+V paste doesn't work" scenario more? I don't think we've got a solid repro for that...

zadjii-msft avatar Nov 10 '23 15:11 zadjii-msft

I use Rocky (RedHat) Linux in WSL, so that's my use case for Terminal (if that has any relevance - I dunno).

If I open 3 panes (1, 2, 3, top-bottom), enable broadcast. Pressing Ctrl-V with 'foo' in the clipboard, multiple times does the following on the iterations:

  • pastes in 1&2
  • pastes in 1&2
  • pastes in 1&2&3
  • pastes in 2&3
  • pastes in 3
  • pastes in 1&3
  • ...

AFAICT the delay between keystrokes does not seem to alter. fast or delay between - it is behaves inconsistently regardless.

stevelipinski avatar Nov 10 '23 16:11 stevelipinski