[BASH] Settings UI: Two issues in automatic profile naming #13319

Closed
opened 2026-01-31 03:39:36 +00:00 by claunia · 5 comments
Owner

Originally created by @DHowett on GitHub (Apr 6, 2021).

Windows Terminal version (or Windows build number)

1.8

Other Software

No response

Steps to reproduce

  • Add a new profile. The automatic name is (for example) "Profile 8".
  • Rename it to "Profile 9" (because you are trying to break Terminal, and for no other reason).
  • Add a new profile, which will be named "Profile 9".

Expected Behavior

No response

Actual Behavior

When you hit save, one disappears from the UI.

originated in 4/2 bug bash

Originally created by @DHowett on GitHub (Apr 6, 2021). ### Windows Terminal version (or Windows build number) 1.8 ### Other Software _No response_ ### Steps to reproduce * Add a new profile. The automatic name is (for example) "Profile 8". * Rename it to "Profile 9" (because you are trying to break Terminal, and for no other reason). * Add a new profile, which will be named "Profile 9". ### Expected Behavior _No response_ ### Actual Behavior When you hit save, one disappears from the UI. _originated in 4/2 bug bash_
Author
Owner

@zadjii-msft commented on GitHub (Apr 6, 2021):

Two issues?

@zadjii-msft commented on GitHub (Apr 6, 2021): _Two_ issues?
Author
Owner

@DHowett commented on GitHub (Apr 6, 2021):

Duplication of the number, stomping of the entry. I also don't think it matters that much. There's easier ways to break Terminal 😄

@DHowett commented on GitHub (Apr 6, 2021): Duplication of the number, stomping of the entry. I also don't think it _matters_ that much. There's easier ways to break Terminal :smile:
Author
Owner

@carlos-zamora commented on GitHub (Apr 7, 2021):

I'm marking this as help wanted. CascadiaSettings::CreateNewProfile() just needs to check if the newly generated name is taken, and, if it is, generate a new one.

Relevant code: 361877cf1b/src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp (L222-L232)

Today, we're naming the new profile "Profile <num of profiles>". We should probably just try "Profile <num of profiles + 1>" and keep incrementing it until we find one that works? I'm mildly annoyed that from that point forward, all new profiles would be called "Profile <num of profiles + 1>" but there's no reason for that to be annoying haha.

@carlos-zamora commented on GitHub (Apr 7, 2021): I'm marking this as help wanted. `CascadiaSettings::CreateNewProfile()` just needs to check if the newly generated name is taken, and, if it is, generate a new one. Relevant code: https://github.com/microsoft/terminal/blob/361877cf1b1be2824f9f0373f1cf524b81cebb12/src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp#L222-L232 Today, we're naming the new profile "`Profile <num of profiles>`". We should probably just try "`Profile <num of profiles + 1>`" and keep incrementing it until we find one that works? I'm mildly annoyed that from that point forward, all new profiles would be called "Profile <num of profiles + 1>" but there's no reason for that to be annoying haha.
Author
Owner

@ghost commented on GitHub (May 25, 2021):

:tada:This issue was addressed in #9816, which has now been successfully released as Windows Terminal v1.8.1444.0.🎉

Handy links:

@ghost commented on GitHub (May 25, 2021): :tada:This issue was addressed in #9816, which has now been successfully released as `Windows Terminal v1.8.1444.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.8.1444.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (May 25, 2021):

:tada:This issue was addressed in #9816, which has now been successfully released as Windows Terminal Preview v1.9.1445.0.🎉

Handy links:

@ghost commented on GitHub (May 25, 2021): :tada:This issue was addressed in #9816, which has now been successfully released as `Windows Terminal Preview v1.9.1445.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.9.1445.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13319