-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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