Skip to content

Mouse text selection has unexpected behavior in terminal #1210

Closed

Description

@pepperpepperpepper

Thanks for this amazing project.

Mouse text selection has these issues:

• Can't select text beyond viewport (no scrolling while selecting)
• Selection immediately copies to clipboard on release
• Mouse coordinates don't account for scroll position

These behaviors differ from standard terminal applications like vim, tmux, and less.

Fixed in #1209

Activity

  1. Pivert commented on Aug 5, 2025

    @Pivert

    Indeed, this copy on release completely breaks the standard select to copy mode in terminals.
    This is a total pain when using opencode from docker, since copy on select is the only option, and there's not clip board.

    We should be able to:

    • Disable clipboard completely (when there are no clipboard/xclip...)
    • (possibly) use the tmux clipboard.

    Thanks for this great tool.

  2. smolin commented on Nov 4, 2025

    @smolin

    Just came here to agree: copy and paste operations should use standard system paradigm: click-drag to select a region, double-click to select a word, triple-click to select a line; control-C or command-C to copy to system clipboard. It's a slight but very real cognitive load issue.

    Thanks for this great project, it rocks!

  3. kommander commented on Dec 20, 2025

    @kommander
    Collaborator

    This should be improved in the latest version. It still copies on mouse release, but that will change soon. In the textarea you can however select text with shift+arrow keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions