-
Notifications
You must be signed in to change notification settings - Fork 331
-
Notifications
You must be signed in to change notification settings - Fork 331
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
yazi not able to follow "default" symlinks created by Windows #471
Comments
Is there anyone familiar with Windows and would like to take a look at this issue? |
Hi, I made a PR trying to fix the symlink issue, #527, let me know if it works! Note that this PR only fixes the problem with symbolic links, not shortcuts, which is the expected behavior: |
#527 doesn't seem to work on these files created by Windows. It works on normal symlinks created by pwsh like The mimetype of the The mimetype of a Windows directory "default" symlink directory is also
|
By the way, you can create symlinks in Windows without admin privileges by enabling Developer Mode in Windows Settings. In bash (that comes with Git for windows), you can create a symlink normally with |
Hmm weird, why it's |
Let me merge that PR first |
It seems there's not much Yazi can do; it's just a weird permission problem on Windows - In fact, Yazi just simply calls Rust's Closing as not Yazi. |
I see. Could something be added on the right pane to show what's happening? Something like "permission denied". Right now yazi shows no files and treats it like an empty directory. |
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
What system are you running Yazi on?
Windows
What terminal are you running Yazi in?
Wezterm
Yazi version
yazi 0.1.5
Did you try the latest main branch to see if the problem has already been fixed?
Not tried, and I'll explain why below
Describe the bug
I'm using the git bash shell on Windows in Wezterm.
symlinks on created by git bash's
ln
are able to be followed, i.e., I can press the letterl
to enter into the symlink target.What doesn't work is pressing
l
to enter into the default symlinks created by Windows which appear in the user's home directory. Windows appears to create a set of default symlinks, such asRecent
in the home directory, which maps to/c/<user>/KhanH/AppData/Roaming/Microsoft/Windows/Recent
(this is a Git Bash path corresponding toC:\Users\<user>\AppData\Roaming\Microsoft\Windows\Recent
). Instead, nothing occurs, (i.e., there is no crash on any error message).file Recent
outputs:Recent: symbolic link to /c/Users/<user>/AppData/Roaming/Microsoft/Windows/Recent
. I am using git bash'sfile
command.cd Recent
works as well.Note: To create a symlink with git bash's
ln
, you need to enable Developer Mode on Windows and set this in your~/.bashrc
:export MSYS=winsymlinks:nativestrict
.Expected Behavior
I would expect
l
to follow the Windows default symlinks.To Reproduce
scoop install git wezterm yazi ...
~/.wezterm.lua
file, set:config.default_prog = { 'c:\\users\\<user>\\scoop\\apps\\git\\current\\bin\\bash.exe -i -l' }
. Check here for more details on the Wezterm config.cd
to~
yazi
.l
on any of the Windows default symlink folders. So,Recent
,, "Start Menu", "Application Data", etc.Configuration
no config
~/.wezterm.lua
:Anything else?
No response
The text was updated successfully, but these errors were encountered: