zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.54k stars 2.64k forks source link

Configure window title pattern #14534

Open bglw opened 1 month ago

bglw commented 1 month ago

Check for existing issues

Describe the feature

Currently, Zed's windows titles take the form of {filename} — {project}, e.g. channel.rs — app.

I would like to configure this to be the inverse: {project} — {filename}, e.g. app — channel.rs.

I tend to have one window for each project, with multiple projects open at once. Having the project name prefix the filename ensures that in my window switcher, the project name is always visible even when the title is truncated.

As-is, I can wind up with situations like:

Truncated to:

Searching for this, I only turned up #5283 — which should possibly be closed as complete anyway since I am seeing details in the window title.

If applicable, add mockups / screenshots to help present your vision of the feature

Example of the situation I can currently find myself in when switching windows: (this is the full width of my switcher)

Screenshot 2024-07-16 at 4 06 55 PM

Vision of the feature: my prior VSCode setting:

  "window.title": "${rootName}${separator}${activeEditorShort}",
bglw commented 1 month ago

(or as a quicker fix, even just an option to omit the filename and show only the project, which saves building any sort of template string parsing)