From 6ed2348078a331bc2039a313bd7ad9f0bb1a00c2 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Thu, 2 Feb 2023 18:14:02 +0100 Subject: Hide duplicate symlinks from the picker (#5658) * hide duplicate symlinks from the picker * Apply suggestions from code review Co-authored-by: g-re-g <123515925+g-re-g@users.noreply.github.com> * minor stylistic fix Co-authored-by: Michael Davis --------- Co-authored-by: g-re-g <123515925+g-re-g@users.noreply.github.com> Co-authored-by: Michael Davis --- helix-view/src/editor.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helix-view') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 46511c62..aabf9cde 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -173,6 +173,8 @@ pub struct FilePickerConfig { /// Enables following symlinks. /// Whether to follow symbolic links in file picker and file or directory completions. Defaults to true. pub follow_symlinks: bool, + /// Hides symlinks that point into the current directory. Defaults to true. + pub deduplicate_links: bool, /// Enables reading ignore files from parent directories. Defaults to true. pub parents: bool, /// Enables reading `.ignore` files. @@ -197,6 +199,7 @@ impl Default for FilePickerConfig { Self { hidden: true, follow_symlinks: true, + deduplicate_links: true, parents: true, ignore: true, git_ignore: true, -- cgit v1.2.3-70-g09d2