Change drive letter on windows
lxl66566 opened this issue · comments
Absolutex commented
Please describe the problem you're trying to solve
yazi couldn't change drive letter on windows now, neither type h
on disk root dir nor type :
and exec cd /d D:\
command
Would you be willing to contribute this feature?
- Yes, I'll give it a shot
Describe the solution you'd like
since disk root dir has no parent
, it may need a manual additional page to show disk letters and switch between them.using GetLogicalDrives api to show all disk letters?
or design a command to switch disk?
Additional context
No response
三咲雅 · Misaki Masa commented
You can either:
- Click
g<Space>
to open the interactivecd
, then typeD:\
to navigate - Bind a key to navigate like this:
{ on = [ "g", "d" ], run = "cd 'D:\\'" }
With the nightly build, you can use D:
instead of D:\
/ D:\\
for convenience. Closing as already supported.
Absolutex commented
My fault. thank you!