elvish
elvish copied to clipboard
edit:complete-dirname doesnt suggest symlinks to directories
What happened, and what did you expect to happen?
edit:complete-dirname doesnt suggest symlinks to directories. it should.
Output of "elvish -version"
0.22.0-dev.0.20240821105340-94dca2081188
Code of Conduct
- [X] I agree to follow Elvish's Code of Conduct.
side-effect is that complete-filename suggest symlinks to directories as files, without adding trailing slash.
It would be great to get this fixed...
This should be due to fs.FileInfo.IsDir checking the FileInfo of the symlink.
There's filepath.EvalSymlinks, but the question is whether to fix this in GenerateDirNames (complex predicate) or generateFileNames (inconsistency as predicate is applied to the resolved stat).