Skip to content

settings: Remove the project_name project setting#54511

Merged
tomhoule merged 1 commit intomainfrom
tomhoule-osmkkutqvmvo
Apr 22, 2026
Merged

settings: Remove the project_name project setting#54511
tomhoule merged 1 commit intomainfrom
tomhoule-osmkkutqvmvo

Conversation

@tomhoule
Copy link
Copy Markdown
Contributor

The project_name worktree setting was added in #36713 to let users override the name shown in the window title. Its description ("The displayed name of this project. If left empty, the root directory name will be displayed.") suggests broader coverage, and #46440 reports the reasonable expectation that it should also apply in the project switcher. In practice the setting has only ever affected Workspace::update_window_title, so everywhere else (recent projects, the multi-worktree pane, ...) keeps falling back to the worktree root name.

Rather than plumb the setting through each of those surfaces, I'm removing it. Having a project-level setting control how your editor displays the project has downsides. For example it means a checkout can dictate UI in someone else's Zed. The natural home for a custom display name is the workspace DB, set from the UI, which is what we should do if we want this feature back.

If you want this back, the path forward is to store the display name in WorkspaceDb, expose a UI affordance to edit it, and read it from update_window_title, recent_projects::get_recent_projects / get_open_folders, and any other places that currently derive a display name from the worktree root.

Closes #46440

Release Notes:

  • Removed the project_name project setting. It only ever affected the OS window title, and the expectation that it would show up in the project switcher and elsewhere is better served by a future UI-driven, per-workspace setting stored locally.

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 22, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Apr 22, 2026
@tomhoule tomhoule force-pushed the tomhoule-osmkkutqvmvo branch from 9302a93 to cbb1d60 Compare April 22, 2026 15:11
The `project_name` worktree setting was added in #36713 to let users override the name shown in the window title. Its description ("The displayed name of this project. If left empty, the root directory name will be displayed.") suggests broader coverage, and #46440 reports the reasonable expectation that it should also apply in the project switcher. In practice the setting has only ever affected `Workspace::update_window_title`, so everywhere else (recent projects, the multi-worktree pane, ...) keeps falling back to the worktree root name.

Rather than plumb the setting through each of those surfaces, I'm removing it. Having a project-level setting control how your editor displays the project has downsides. For example it means a checkout can dictate UI in someone else's Zed. The natural home for a custom display name is the workspace DB, set from the UI, which is what we should do if we want this feature back.

If you want this back, the path forward is to store the display name in `WorkspaceDb`, expose a UI affordance to edit it, and read it from `update_window_title`, `recent_projects::get_recent_projects` / `get_open_folders`, and any other places that currently derive a display name from the worktree root.

Closes #46440

Release Notes:

- Removed the `project_name` project setting. It only ever affected the OS window title, and the expectation that it would show up in the project switcher and elsewhere is better served by a future UI-driven, per-workspace setting stored locally.
@tomhoule tomhoule force-pushed the tomhoule-osmkkutqvmvo branch from cbb1d60 to 71a938a Compare April 22, 2026 15:26
@tomhoule tomhoule marked this pull request as ready for review April 22, 2026 15:26
@tomhoule tomhoule merged commit dfb8e34 into main Apr 22, 2026
31 checks passed
@tomhoule tomhoule deleted the tomhoule-osmkkutqvmvo branch April 22, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting a project name doesn't reflect on the project switcher

2 participants