diff options
author | Pascal Kuthe | 2023-02-02 17:14:02 +0000 |
---|---|---|
committer | GitHub | 2023-02-02 17:14:02 +0000 |
commit | 6ed2348078a331bc2039a313bd7ad9f0bb1a00c2 (patch) | |
tree | 5382d34d59def4d84a2e3455f4cbd4b1f66ff961 /helix-view/src | |
parent | 62d046fa219b927c536bf6726fcae1e825346e0e (diff) |
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 <mcarsondavis@gmail.com>
---------
Co-authored-by: g-re-g <123515925+g-re-g@users.noreply.github.com>
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/editor.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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, |