right-click to paste with windows terminal
Blues-star opened this issue · comments
Issue description
When using Zellij with Windows Terminal, the current mouse interactions for copy and paste are not intuitive and do not align with common expectations. Specifically, left-click selects and automatically copies text, but right-click does not paste the copied text unless combined with keyboard shortcuts (CTRL+V or SHIFT+INSERT). Ideally, I would like the ability to configure mouse interactions such that:
- Left-click selects text.
- Right-click after selection copies the selected text.
- Right-click without a previous selection pastes the last copied text.
Minimal reproduction
- Open Windows Terminal with Zellij.
- Select text using the mouse left-click.
- Attempt to copy with right-click (no effect).
- Attempt to paste with right-click (no effect, requires keyboard shortcuts).
Other relevant information
This behavior is not consistent with many other terminal emulators where mouse interactions are more flexible and intuitive. Enhancing mouse support in Zellij could significantly improve usability, especially for users frequently interacting with the terminal for copy-paste operations.
I find that if I hold down the shift key, the above behavior works normally. I'm not too clear on the key forwarding principle of the terminal multiplexer, but I'm very curious as to why this is the case.