microsoft / microsoft/terminal

wt new-tab --no-focus, to keep the focus in the current tab rather than the new tab

Open
#17,460 7 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Commandline Issue-Feature 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

Add to `wt new-tab` an option that makes it keep the focus in the current tab, instead of switching to the new tab.
I think `--no-focus` would be a good name for the new option, and consistent with the `focus-tab` command.

I'd use this in a Bash alias that starts a console application that takes some time to initialize. So I'd be able to continue working in the shell while the application is initializing, and switch to the application's tab a bit later.

# Proposed technical implementation details (optional)

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

Start by tracing the `wt new-tab` command and comparing its option handling with the existing `focus-tab` command. Add the proposed `--no-focus` behavior so the current tab remains selected, then run the relevant terminal command tests or manually verify that creating a tab does not switch focus.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.