Skip to content

Commit

Permalink
Add support of auto folded directories (#7674)
Browse files Browse the repository at this point in the history
Added support of auto collapsed directories, for example when directory
has only one directory inside we should display it as dir1/dir2 (#6935
). Please feel free to propose better solutions, as I am new in Rust

Demo:
https://streamable.com/seo3n9

Release Notes:

- Added support for auto-collapsing directories.
  • Loading branch information
ABckh authored Feb 26, 2024
1 parent fcd0571 commit 011ae85
Show file tree
Hide file tree
Showing 3 changed files with 328 additions and 41 deletions.
5 changes: 4 additions & 1 deletion assets/settings/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@
// Whether to reveal it in the project panel automatically,
// when a corresponding project entry becomes active.
// Gitignored entries are never auto revealed.
"auto_reveal_entries": true
"auto_reveal_entries": true,
/// Whether to fold directories automatically
/// when directory has only one directory inside.
"auto_fold_dirs": true
},
"collaboration_panel": {
// Whether to show the collaboration panel button in the status bar.
Expand Down
Loading

0 comments on commit 011ae85

Please sign in to comment.