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

Switch between drives #72

Closed
fekir opened this issue Feb 6, 2024 · 3 comments · Fixed by #75
Closed

Switch between drives #72

fekir opened this issue Feb 6, 2024 · 3 comments · Fixed by #75
Milestone

Comments

@fekir
Copy link

fekir commented Feb 6, 2024

In Unix-like system, there is the root directoy /.

External drives are mounted somewhere under it, thus it is generally possible to access all folders by traversing a tree.

In Windows, as Paths represented as C:/blabla, it is not, as an USB drive will be mounted, for example, as D:/.

In explorer.exe there is a "virtual folder" from which it is possible to access C:/, other partitions if available and network drives.

As far as I know, there is no way from mc for switching between C:/ and D:/ (typing the cd command out and using a bookmark are possible workarounds).

I think it would be nice to have a virtual folder similar to explorer.exe (thus a parent of C:/), but I'm not sure what side-effects such a virtual folder could have.
Otherwise some action that enlists all mounted drives (local or network) and asks to which to switch?
For what is worth, far (another file manager like mc from the command line: https://www.farmanager.com/) uses Alt+F1 for asking to which drive to change

@fekir
Copy link
Author

fekir commented Feb 6, 2024

Alt+F1 seems to also work in mcwin32, thus this issue can be closed.

Is it documented somewhere?
Somehow I do not find this feature described anywhere.

@adamyg
Copy link
Owner

adamyg commented Feb 6, 2024

ALt-F1 and Alt-D present a "Change Drive" dialog.
also when a drive is present within the a cd command, examples cd D:<dir> or cd D:. the same can occur.

@adamyg adamyg closed this as completed Feb 6, 2024
@adamyg
Copy link
Owner

adamyg commented Feb 6, 2024

cd <drive>:. displays . and not the resulting target directory.
plus cd <drive>: doesn't always behave as expected.

@adamyg adamyg reopened this Feb 6, 2024
@adamyg adamyg added this to the build-230 milestone Feb 6, 2024
@adamyg adamyg mentioned this issue Mar 30, 2024
@adamyg adamyg linked a pull request Mar 30, 2024 that will close this issue
adamyg added a commit that referenced this issue Mar 31, 2024
build-230:
* mc merge 4.8.31 (#70)
* mbedtls 3.5.2 (#67)
* AltGr detection (#71, #52)
* mcdiff integration (#74)
* cd/cdpath (#72)
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

Successfully merging a pull request may close this issue.

2 participants