Skip to content

Selecting text doesn't copy it into the vim's clipboard buffer in Chrome on MacOS #1492

Description

@yurivict

Describe the bug

The problem is in Chrome on MacOS: when the text is selected with a mouse it gets copied into the MacOS clipboard, but not into the vim's clipboard buffer in the terminal.

The behavior is different in Edge on Windows where the text selection is copied into both Windows clipboard and into vim's clipboard.

Firefox and Chromium on FreeBSD also correctly copy the text into both system clipboard and vim's clipboard.

To Reproduce
Steps to reproduce the behavior:

  1. Open ttyd terminal, login into the remote system
  2. Open some text file in vim
  3. Select some text with the mouse
  4. Press 'i' in vim to enter the typing mode
  5. Press Ctrl-Shift-V to paste into vim
  6. Observe that paste doesn't work

Expected behavior
Paste should work in vim when the text was selected in the ttyd terminal.

Screenshots
n/a

Environment:

  • OS: macOS 14.6.1
  • Browser: Chrome

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions