-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Hide duplicate symlinks from the picker #5658
Hide duplicate symlinks from the picker #5658
Conversation
4369da6
to
a92f9c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-links
was disabled (which seems really odd,global_search
already handled this correctly). Also added documentation forfollow-links
since 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