Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display parent folder name in terminal tab #51625

Open
vscodenpa opened this issue Jul 31, 2024 · 0 comments
Open

Display parent folder name in terminal tab #51625

vscodenpa opened this issue Jul 31, 2024 · 0 comments

Comments

@vscodenpa
Copy link
Owner

It would be useful to be able to display the parent directory name of the CWD in the terminal tab, to be able to differentiate between folders with the same name

Exemple:
Tabs opened in folders such as :

  • .../Composables/Common
  • .../Components/Common
  • .../Directives/Common

all display : "bash Common"

We could change this by using "terminal.integrated.tabs.description" and a new ${cwdParentFolder} variable and use it like so :
"${cwdParentFolder}/${cwdFolder}"

to display : "bash Components/Common"

${cwd} overflows most of the time and is not really usable in that case

Thank you for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant