diff options
author | Roland Kovacs | 2022-06-15 04:17:17 +0000 |
---|---|---|
committer | GitHub | 2022-06-15 04:17:17 +0000 |
commit | c2cc2037b548a39d374b11c6919e10b1a7115cfb (patch) | |
tree | f585adf59993e0c21a63fb13e48432db991e3563 /helix-view | |
parent | 7983c71752e2443266ecc65581f3a980696cc294 (diff) |
Better handling of symlinks (#2718)
- Add file-picker.follow-symlinks configuration option (default is true), this
also controls if filename and directory completers follow symlinks.
- Update FilePicker to set editor error if opening a file fails, instead of
panicing.
Fix #1548
Fix #2246
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/editor.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 8e53936a..3bc3ecb1 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -71,6 +71,9 @@ pub struct FilePickerConfig { /// Enables ignoring hidden files. /// Whether to hide hidden files in file picker and global search results. Defaults to true. pub hidden: bool, + /// Enables following symlinks. + /// Whether to follow symbolic links in file picker and file or directory completions. Defaults to true. + pub follow_symlinks: bool, /// Enables reading ignore files from parent directories. Defaults to true. pub parents: bool, /// Enables reading `.ignore` files. @@ -94,6 +97,7 @@ impl Default for FilePickerConfig { fn default() -> Self { Self { hidden: true, + follow_symlinks: true, parents: true, ignore: true, git_ignore: true, |