[PR #9816] [MERGED] Fix profile name generation to allocate unique name #27781

Open
opened 2026-01-31 09:24:12 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9816
Author: @Don-Vito
Created: 4/14/2021
Status: Merged
Merged: 4/14/2021
Merged by: @undefined

Base: mainHead: 9714-unique-profile-name


📝 Commits (1)

  • e656874 Fix profile name generation to allocate unique name

📊 Changes

1 file changed (+18 additions, -5 deletions)

View changed files

📝 src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp (+18 -5)

📄 Description

PR Checklist

Detailed Description of the Pull Request / Additional comments

Attempts to generate a name Profile X, where X is the index of the new profile (1-based).
As long as name is already taken, generates new name by incrementing X by 1


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/9816 **Author:** [@Don-Vito](https://github.com/Don-Vito) **Created:** 4/14/2021 **Status:** ✅ Merged **Merged:** 4/14/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `9714-unique-profile-name` --- ### 📝 Commits (1) - [`e656874`](https://github.com/microsoft/terminal/commit/e6568741f236e2e838b593fc5e7cdd857a6a8c8a) Fix profile name generation to allocate unique name ### 📊 Changes **1 file changed** (+18 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp` (+18 -5) </details> ### 📄 Description ## PR Checklist * [x] Closes https://github.com/microsoft/terminal/issues/9714 * [x] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [ ] I've discussed this with core contributors already. ## Detailed Description of the Pull Request / Additional comments Attempts to generate a name Profile X, where X is the index of the new profile (1-based). As long as name is already taken, generates new name by incrementing X by 1 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:24:12 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27781