Skip to content

Request: ${rootNameShort} for Window Titles #145238

@joemaller

Description

@joemaller

On all platforms, the ${rootName} Window Title variable includes " (Workspace)", and when using Remotes like WSL, the variable also includes something like " [WSL: Ubuntu]". It would be useful to have a shorter variant with just the Workspace name, so instead of "wsName (Workspace) [WSL: Ubuntu]" we could have "wsName".

I frequently have several Workspaces open and use Workspace names to distinguish between open windows in the Windows Task Bar/View and macOS Mission Control/Exposé. The extra characters describing the Workspace often cause the OS to truncate the visible window title, hiding other useful information. The window.title property allows customization, but putting the Workspace first often sacrifices filename visibility for Workspace metadata.

Since we already have access to ${remoteName}, perhaps other Workspace component names could also be added?

Current:

  • ${rootName} - wsName (Workspace) [WSL: Ubuntu]
  • ${remoteName} - WSL: Ubuntu

Proposed:

  • ${rootNameShort} - wsName
  • ${rootIdentifier} - Workspace // (similar to ${separator}

With those two variables defined, ${rootName} could then be expressed as ${rootNameShort} (${rootIdentifier}) [${remoteName}]

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorfeature-requestRequest for new features or functionalitygood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsiderstitlebarVS Code main title bar issuesverification-neededVerification of issue is requestedverifiedVerification succeededworkbench-multirootMulti-root (multiple folders) issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions