microsoft / microsoft/terminal
wt new-tab --no-focus, to keep the focus in the current tab rather than the new tab
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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