-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Open
Labels
Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Complex enough to require an in depth planning process and actual budgeted, scheduled work.Needs-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingIt's a new issue that the core contributor team needs to triage at the next triage meeting
Description
Description of the new feature
It'd be great if when opening a terminal from a UNC path, a free drive letter was automatically mapped and when no longer in use it was automatically unmapped.
Currently the easiest way to do this is copy+pasting the path and using pushd, thenpopd if I remember when done to unmap.
Extra credit: notification bar to show that it's been mapped.
Current behavior:
- Have "Command Prompt" set as default profile in Windows Terminal
- Browse to a UNC path (
\\servername\sharename\) in File Explorer - Right click the background or a folder and select "Open in Terminal"
Output
'\\servername\sharename\path\to\directory'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Microsoft Windows [Version 10.0.26100.6899]
(c) Microsoft Corporation. All rights reserved.
C:\Windows>
Proposed technical implementation details
For finding a free drive letter and mapping see how pushd does it?
For automaticlly unmapping, Maybe Windows has a "unmap on last close" flag? Otherwise just make an attempt when the terminal closes. I guess you could show a notification bar if it fails with a retry button.
Metadata
Metadata
Assignees
Labels
Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Complex enough to require an in depth planning process and actual budgeted, scheduled work.Needs-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingIt's a new issue that the core contributor team needs to triage at the next triage meeting