mgunyho / tere

Terminal file explorer
European Union Public License 1.2
1.67k stars 36 forks source link

Unable to change drive / volume on windows #96

Open BenjaminKobjolke opened 10 months ago

BenjaminKobjolke commented 10 months ago

Is there a way to navigate to a different drive on windows?

mgunyho commented 10 months ago

Hi! I haven't actually used tere on Windows almost at all, so it very well might be that this is not possible currently, but ideally it should be. What happens if you type / to go to the root?

BenjaminKobjolke commented 10 months ago

I tried using ".." to navigate further up and also "/", no effect.

Demovideo: https://github.com/mgunyho/tere/assets/5636473/9ec2de94-b5a4-47d7-8f9f-210dcc7d337b

mgunyho commented 10 months ago

Thanks for the video! This is definitely something that should be fixed.

The approach that immediately comes to mind would be to extend the file system navigation (with #[cfg(windows)]) to pretend that we have a root folder under which the drives would be. It's probably quite ugly but I can't think of another way to do it. Maybe Path has some API to go beyond the drive root.

I might not have time to work on this before next year, but patches are definitely always welcome.