atom/tree-view

[Feature request] Sticky directories

Opened this issue · 5 comments

Hey,
when I'm working on big projects with a big structure I often lose myself where I'm and looking for the last parent. What do you think about adding sticky directories?
EG:

sticky

When using the One themes, there should be an option starting with Atom 1.28 beta to allow sticky directories. Themes -> the settings button -> "Make tree-view project headers sticky".

"Make tree-view project headers sticky" - isn't it only for projects? not for all directories?

Ah! You're completely correct. Is the GIF you showed a mockup or an actual implementation of sticky directories?

is actual but this just a draft, I didn't focused on detailing, just on the concept. If you would like to reproduce it here is a snippet:

.tree-view {
  .project-root-header {
    z-index: 2 !important;
  }

  .entries .expanded>.header {
    position: sticky;
    top: 30px;
    background-color: rgb(232, 228, 217);
    z-index: 1;
  }
}

To have it looks good it will require some changes accrdoing to li states. We have to put the state on the header explictly instead of the whole element. Eg with selected, focus etc.

My suggestion is to display full path in the sticky row, like app, then app > models, then app > models > something_else.

Like breadcrumbs!