microsoft / microsoft/terminal

Limit triple-click selection to command field only

Open
#9,881 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Input Area-TerminalControl Issue-Task Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

# Description of the new feature/enhancement
Currently, Ctrl+A will select the entire command/text input, however, triple clicking (mouse version of Select All selects the entire line (including the prompt). GIF shows selecting with mouse vs with keyboard:

![terminal](https://user-images.githubusercontent.com/38451588/115137957-7c76ba80-a06c-11eb-9201-c1ab5e9ec4a7.gif)

I can't think of many (any?) situations where I'd want to include the prompt when selecting or copying a line.

# Proposed technical implementation details (optional)

I would like the triple click action to align to the Ctrl+A selection method. Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the terminal command-field handling and the existing Ctrl+A selection behavior; done means triple-click selects only the command text and excludes the prompt, matching Ctrl+A.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.