Skip to content

Triple-click select line shouldn't trim whitespace before/after #11463

Open

Description

@mitchellh

From #11411

Example:

        let classified: Vec<_> = campaign
            .placements
            .iter()
            .filter_map(|p| classify_placement(p, mute_stats).map(|ty| (p, ty)))
            .collect();

Triple click currently stops at whitespace. I couldn't find another terminal on macOS that behaves this way, so we should follow suit and select the whole line including whitespace. The arguments for why in #11411 make sense.

Activity

  1. added this to the 1.3.2 milestone on Mar 13, 2026
  2. added theissue type on Mar 13, 2026
  3. jesusvazquez commented on Mar 14, 2026

    @jesusvazquez

    👋 I have a potential fix for this one here

    That said, I was checking how it works in iTerm and there is a visual-only difference on the last line. iTerm highlights until the end of the line while we only highlight until the last character.

    Ghostty with the changes in the PR above

    image

    iTerm selection + data comparison being the same

    image

    So practically the behavior is now the same BUT there is this visual detail change on the last line.

    Do we want it?

  4. jesusvazquez commented on Mar 15, 2026

    @jesusvazquez

    The previous approach was fundamentally wrong, we're giving it a second try in here #11535

  5. speakman commented on Mar 30, 2026

    @speakman

    I'm new to Ghostty, and this has quickly become my nemesis: triple-clicking doesn't reliably select the full line regardless of cursor position, nor allow dragging to extend the selection across lines (as in iTerm2 and most other terminals).

  6. rishangbhavsar commented on Oct 12, 2026

    @rishangbhavsar

    Any updates for 1.3.2?

  7. modified the milestones: 1.3.2, 1.5.0 on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    inputKeyboard or mouse input

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions