Skip to content

Triple-click to select logical line #18877

@ebarzilay-godaddy

Description

@ebarzilay-godaddy

Description of the new feature

One very useful feature of xterm is that triple-clicking will (by default) select a whole logical line.

When is it useful?

Imagine sshing to some server and looking at a json-per-line log file with long lines. Looks like something is wrong in some area on the screen, so you want to look at that whole line -- how do you do that?

With xterm, I triple-click, and get the whole line. Winterm, OTOH, will select just the random physical line I clicked on.

I think that not only would it be good to have this functionality, it would also be better than the default in many cases.

Proposed technical implementation details

I don't know how it's implemented, but it looks like winterm does keep track of logical lines, so that information could be used instead of the physical line.

(I'm guessing the above because resizing the window shows that the logical lines are rewrapped; and also if I select a bunch of physical lines that come from a number of long lines, the resulting text has the proper logical newlines, rather than having them at the points where the text got wrapped.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Help WantedWe encourage anyone to jump in on these.Issue-TaskIt's a feature request, but it doesn't really need a major design.Needs-Tag-FixDoesn't match tag requirementsPriority-3A description (P3)Product-TerminalThe new Windows Terminal.good first issueThis is a fix that might be easier for someone to do as a first contribution

    Projects

    Status

    Cherry Picked

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions