Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KalleOlaviNiemitalo opened this issue Jun 21, 2024 · 3 comments
Labels
Area-Commandline wt.exe's commandline arguments Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Product-Terminal The new Windows Terminal.
Milestone

Comments

@KalleOlaviNiemitalo
Copy link

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)

@KalleOlaviNiemitalo KalleOlaviNiemitalo added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Jun 21, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jun 21, 2024
@PankajBhojwani
Copy link
Contributor

This sounds interesting! Thank you for submitting this.

We have some concerns about how this would interact with some other commandline arguments (like split pane), so we are going to put this on the backlog and mark it as requiring a spec.

@PankajBhojwani PankajBhojwani added Product-Terminal The new Windows Terminal. Area-Commandline wt.exe's commandline arguments labels Jun 26, 2024
@PankajBhojwani PankajBhojwani added this to the Backlog milestone Jun 26, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Tag-Fix Doesn't match tag requirements label Jun 26, 2024
@PankajBhojwani PankajBhojwani added this to Spec Needed ❓ in Specification Tracker Jun 26, 2024
@KalleOlaviNiemitalo
Copy link
Author

I don't understand the concern about split pane. new-tab and split-pane are separate commands and don't have to support all the same options.

@DHowett
Copy link
Member

DHowett commented Jun 27, 2024

They may not have to, but they should. They're both different localities for "make a new teminal control somewhere". split-pane focuses the new terminal, and if we're going to implement this for one type of "make-new-terminal" we should do it for all of them.

But then... should it be part of the action language as well? e.g. should you be able to bind Ctrl+Shift+B to open a new unfocused tab in the background?

What about new-window? Or the actions for moving a tab to a different window? Those all focus the new tab too... 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Commandline wt.exe's commandline arguments Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Product-Terminal The new Windows Terminal.
Projects
Specification Tracker
  
Spec Needed ❓
Development

No branches or pull requests

3 participants