Skip to content

Shift+M to toggle mouse capture for native text selection #174

Description

@toobuntu

On terminals such as macOS Terminal.app no modifier key bypasses mouse reporting — making native text selection impossible while leaf is running.

A Shift+M shortcut that issues DisableMouseCapture / EnableMouseCapture would let users pause mouse reporting, perform a selection with the terminal's native drag behavior, then resume. This is the keyboard-driven mode-switch pattern tmux uses, and should work uniformly across all terminal emulators.

Proposed behavior:

  • Shift+M (normal view only, not inside popups) toggles crossterm mouse capture off/on
  • A status-bar indicator (e.g. [mouse off]) while capture is disabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions