zellij-org / zellij

A terminal workspace with batteries included

Home Page:https://zellij.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Open Windows Terminal with Zellij.
  2. Select text using the mouse left-click.
  3. Attempt to copy with right-click (no effect).
  4. 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.