Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change drive / volume on windows #96

Open
BenjaminKobjolke opened this issue Nov 24, 2023 · 3 comments
Open

Unable to change drive / volume on windows #96

BenjaminKobjolke opened this issue Nov 24, 2023 · 3 comments

Comments

@BenjaminKobjolke
Copy link

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

@mgunyho
Copy link
Owner

mgunyho commented Nov 24, 2023

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
Copy link
Author

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
Copy link
Owner

mgunyho commented Nov 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants