Skip to content

Terminal locks its starting directory; perhaps it shouldn't do that? #5506

@ghost

Description

Description of the new feature/enhancement

The directory that Windows Terminal starts up in can't be deleted (in Windows Explorer / Directory Opus / etc). It would be nice if I could delete the folder without exiting wt first.

Use case:

When you configure a profile to include this:
"startingDirectory" : ".",
and then set up the right-click "Start Windows Terminal Here" functionality in Windows Explorer to start a wt instance in any folder you get to create Terminal instances quickly and conveniently.

But, if you get done with that folder and want to delete it then you need to close wt first.

It would be convenient to delete the folder without closing wt first.

What's weird is that this behavior (keeping the starting dir locked so you can't delete it) continues to happen even if you navigate away from that dir in the command line.
(Which makes sense - wt creates new tabs in that same dir so preventing it from disappearing is understandable)

Proposed technical implementation details (optional)

  • Do NOT lock the directory, allowing the user to delete it.
  • Start new tabs in the default starting directory instead

maintainer edit:

Also using to track the thing where wt needs to tell the existing window about the current CWD, for running actions in an existing window (which may have a different CWD), see #13430

Metadata

Metadata

Assignees

Labels

Area-Commandlinewt.exe's commandline argumentsArea-RemotingCommunication layer between windows. Often for windowing behavior, quake mode, etc.Help WantedWe encourage anyone to jump in on these.In-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-1A description (P1)Product-TerminalThe new Windows Terminal.Severity-BlockingWe won't ship a release like this! No-siree.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions