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

Setting title of a split-pane tab via cli only sets title when pane is active #12459

Closed
joshuacookdev opened this issue Feb 10, 2022 · 4 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Resolution-External For issues that are outside this codebase

Comments

@joshuacookdev
Copy link

joshuacookdev commented Feb 10, 2022

Windows Terminal version

1.11.3471.0

Windows build number

10.0.22000.493

Other Software

Using PowerShell Core (7.2.1) as default profile.

Steps to reproduce

Run the following command in PS (any directory will work):

wt -w 0 nt --title Test -d C:/Users `; sp -d C:/Windows

(with or without the `; will work afaik)

Expected Behavior

The tab to have the title "Test" regardless of which pane is focused in that tab, the same behavior as if I manually named the tab by double-clicking and typing the name.

I skimmed the MS Docs page again to confirm that this should set the tab title. I also tried adding a split pane in a few places to the command example and am seeing the same behavior. If there's a different syntax for setting the Tab title (and the --title flag is meant to be pane title), then this should maybe be a documentation issue instead of a bug?

I'm not sure what "right" looks like for this (whether it's a behavior change or a syntax/documentation change), so I went with issue-bug rather than another option for the issue type. Feel free to rescope if needed, this isn't necessarily a show-stopper issue for me.

Actual Behavior

When you focus on the left pane (Users directory), the tab has the "Test" title. When you focus on the right pane (Windows directory) the tab title changes to PowerShell.

Placement of the --title command doesn't seem to impact the behavior, unless I'm missing something in the command formatting.

@joshuacookdev joshuacookdev added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Feb 10, 2022
@ghost ghost 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 Feb 10, 2022
@zadjii-msft
Copy link
Member

That's maybe a bit confusing. Each pane has its own "title". The --title arg on the first nt command sets the tab title for the first pane, but not the second one.

@zadjii-msft
Copy link
Member

I'm gonna move this to a docs bug over at /dup MicrosoftDocs/terminal#499. Sorry for the confusion!

@ghost
Copy link

ghost commented Feb 10, 2022

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@ghost ghost added Resolution-External For issues that are outside this codebase and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Feb 10, 2022
@joshuacookdev
Copy link
Author

@zadjii-msft thanks for the clarification - part of me had thought the "per pane tab title" was intentional, but the docs weren't super clear on the matter.

Question: Is there currently an option to set the tab title via the cli (that behaves the same as manually setting the tab title)? If not, would it be possible to convert this issue-bug into a feature request (maybe saying --tab-title sets title for entire tab)? I'd be willing to attempt the work if it's something the team would be interested in having as a cli flag. I'm good with the behavior as-is, though - I'll just duplicate the --title flag in my shortcuts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Resolution-External For issues that are outside this codebase
Projects
None yet
Development

No branches or pull requests

2 participants