You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Autocomplete with cd doesn't recognize symlinks #5451
yeah, just upgraded to 0.62.0 and it doesn't work anymore, so it's a regression.
I can see in the code that we're checking if it's dir, so once it's a symlink it won't match:
I'm not sure if there's a way to detect sym links for directories.
We could easily add one is_symlink() as well there, but if it's sym link to a file we shouldn't show (no idea if it's possible). Or we just adopt the approach to always show if it's a sym link.
Activity
mxfp0 commentedon May 5, 2022
hmm, that's weird, here it completes correctly:

I'm using
0.61.1though, let me try to upgrade and check if the issue persist.mxfp0 commentedon May 5, 2022
yeah, just upgraded to
0.62.0and it doesn't work anymore, so it's a regression.I can see in the code that we're checking if it's dir, so once it's a symlink it won't match:
nushell/crates/nu-cli/src/completions/directory_completions.rs
Line 124 in d6de67b
I'm not sure if there's a way to detect sym links for directories.
We could easily add one
is_symlink()as well there, but if it's sym link to a file we shouldn't show (no idea if it's possible). Or we just adopt the approach to always show if it's a sym link.