Skip to content
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

Collapse nested single directory paths #38

Open
laughedelic opened this issue Dec 2, 2020 · 1 comment
Open

Collapse nested single directory paths #38

laughedelic opened this issue Dec 2, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@laughedelic
Copy link

Here's how it looks now:

Screenshot 2020-12-02 at 01 59 10

It would be nice to see the part starting from main as one node in the tree, so it can be toggled with a single click and the innermost content is indented only by 1 extra level, i.e. something like this:

⌄ enumeratum/
  ⌄ src/
    ⌄ main/scala/com/monovore/decline/enumeratum/
        package.scala
        ValueEnumArgument.scala
  ˃ test/

I think this is a common feature in editors that have a tree view interface.

@brumm
Copy link
Owner

brumm commented Dec 2, 2020

I think this request has popped up before 🤔

To do this, we'd need to either continue to recursively load 'empty' directories when prefetching them, or load the entire repo tree up front.

I'm not sure either is possible with the current setup, which tries to only load the visible + 1 file tree. Especially with larger repos, loading the entire thing could lead to slowdowns.

I'd be open to a contributed feature, but I don't think I want to build this myself. Would you be interested in championing this?

@brumm brumm added the help wanted Extra attention is needed label Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants