Hide duplicate symlinks from the picker - #5658
Conversation
4369da6 to
a92f9c5
Compare
There was a problem hiding this comment.
Solid feature. Duplicate entries due to symlinks is something I've run into as well. imo, everywhere links is used symlinks should be used. Personally I'm not one for abbreviation and in anycase both link and symlink are used in this PR and it should probably stick to one of the two.
dbe9290 to
1958fb2
Compare
Co-authored-by: g-re-g <123515925+g-re-g@users.noreply.github.com>
1958fb2 to
87f87a0
Compare
The |
the-mikedavis
left a comment
There was a problem hiding this comment.
Just a minor style nit, otherwise I think this looks good 👍
|
Ah nice, this fixes themes showing up twice in the helix repo under |
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Fixes #5395
Fixes #5725
Fixes #5210
This PR adds a config option to the picker to hide symlinks that point into the root directory of a picker.
These symlinks always point at files that would be included in the picker anyway and are therefore essentially duplicate.
The config option is enabled by default.
While working on this I noticed some small issues with the existing handling around symlinks.
They were included in the file picker if
follow-linkswas disabled (which seems really odd,global_searchalready handled this correctly). Also added documentation forfollow-linkssince that seems to have been missed.Edit: The fix for filtering symlinks from the picker I described in the last paragraph more generally filters all kinds of "non standard" files like pipes, block devices, etc. Reading thise can lock up the edtior. By fixing that I actually accidentally fixed #5725