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

Feature request: option to remove profile icon completely #17943

Closed
pwthutch opened this issue Sep 21, 2024 · 3 comments · Fixed by #18030
Closed

Feature request: option to remove profile icon completely #17943

pwthutch opened this issue Sep 21, 2024 · 3 comments · Fixed by #18030
Assignees
Labels
Area-Settings Issues related to settings and customizability, for console or terminal In-PR This issue has a related PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Product-Terminal The new Windows Terminal.

Comments

@pwthutch
Copy link

Description of the new feature/enhancement

Provide an option in settings.json to remove the icon for a profile completely, and reclaim the space in the tab bar to display (more of) the profile's name/tab title.

Use case: I routinely work with a large number of open tabs, in which case the profile icon takes up between 1/3 to 1/2 of the available tab width, meaning only the first 3-4 characters of the window title are shown. This is insufficient for me to quickly identify and switch between open tabs.

While I do appreciate the cute row of Tux-en at top of my screen :) (most of my tabs are ssh sessions to remote Linux machines), I'd rather have the real-estate used more productively.

Tried the following to achieve this in 1.21, without success:

  • Setting "icon": "" in the profile definition -> causes WT to throw an error about invalid icon path
  • Setting "icon": null in the profile definition -> does nothing; the inbuilt default icon for the profile will still be used
  • Setting the icon path to a 1x1 pixel transparent .png (thought I was being clever here) -> does achieve "blanking out" the profile icon (the default icon will no longer be shown), but does not move the profile title any further to the left in the tab.

Proposed technical implementation details (optional)

  • Allow some variant of "icon": "none", "icon": "" or similar to be set in the profile definition
  • When configured, the icon should be removed from the tab completely, and the tab title shifted as far left as possible.
@pwthutch pwthutch added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Sep 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 Sep 21, 2024
@carlos-zamora carlos-zamora added this to the Terminal v1.23 milestone Oct 2, 2024
@carlos-zamora carlos-zamora added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Settings Issues related to settings and customizability, for console or terminal Product-Terminal The new Windows Terminal. and removed 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 Needs-Tag-Fix Doesn't match tag requirements labels Oct 2, 2024
@DHowett
Copy link
Member

DHowett commented Oct 2, 2024

Huh. 4ff38c2 should have introduced support for "icon": "none".

We've marked this up as a bug. Thanks!

@carlos-zamora carlos-zamora self-assigned this Oct 2, 2024
@LouizaMak
Copy link

@carlos-zamora I would be interested in working on this!

@carlos-zamora
Copy link
Member

I would be interested in working on this!

Thanks for you interest @LouizaMak! I'm already working in this space though with #17965 (and I plan on fixing it as a part of that PR). I suggest working on a different issue. Issues tagged as "Help-Wanted" (see this query) would be a good place to start 😊

Also, we're happy to take PRs, so no need to comment on the issue you're interested in. Just get coding and open a PR on our repo. Excited to see it come in!

@microsoft-github-policy-service microsoft-github-policy-service bot added the In-PR This issue has a related PR label Oct 10, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Tag-Fix Doesn't match tag requirements label Oct 11, 2024
DHowett pushed a commit that referenced this issue Oct 17, 2024
The settings UI and settings model allow you to set the icon to "none"
to hide the icon (you can actually see this effect in the settings UI
when changing the value of the profile icon). However, during settings
validation, "none" is considered a file path, which is then failed to be
parsed, resulting in the icon being marked as invalid and immediately
clearing the value.

This PR fixes this issue by considering "none" to be an accepted value
during validation.

Related to #15843
Closes #17943

## Validation Steps Performed
When an icon is set to "none", ...
✅ no more warning
✅ the icon is hidden

(cherry picked from commit 36f064c)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgTyV8A
Service-Version: 1.21
DHowett pushed a commit that referenced this issue Oct 17, 2024
The settings UI and settings model allow you to set the icon to "none"
to hide the icon (you can actually see this effect in the settings UI
when changing the value of the profile icon). However, during settings
validation, "none" is considered a file path, which is then failed to be
parsed, resulting in the icon being marked as invalid and immediately
clearing the value.

This PR fixes this issue by considering "none" to be an accepted value
during validation.

Related to #15843
Closes #17943

## Validation Steps Performed
When an icon is set to "none", ...
✅ no more warning
✅ the icon is hidden

(cherry picked from commit 36f064c)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgTyV8E
Service-Version: 1.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal In-PR This issue has a related PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants