-
Notifications
You must be signed in to change notification settings - Fork 696
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
Accordion View #2711
Comments
I feel like your first VS Code example with one-liners can be accomplished with your treeview-in-a-table #2685 and using special formatting for the items at the lowest level. But I take it the idea is borders around each item, like this (where the asterisks around the categories indicate a different color than the contents)?
|
I think the key differences between what I am proposing and tree view is that the section expanded from the title is a full view. For example the vs code top section (Source Control) expands to reveal a panel with a text box (commit message), a button (commit) and a tree view (changes). So it would be more like I starting initial exploration on my accordion branch. Heres a draft PR of my initial thoughts: #2712 But it's not laying out correctly. I think adding/removing views is not refreshing/working correctly. I'm also leaning towards making the 'header' just text instead of a full
Have to think about it but vertical space is at a premium in console so I would like to see a way for sections not to have splitter lines until they are actually expanded. For example when nothing is expanded it could look like:
When a single section is open then it fills the full vertical space of accordion view. So it would look something like:
Then if 2+ are expanded we need to somehow allow resizing (like TileView does). So something like:
|
Oh, for some reason my brain blocked out Source Control as separate from the accordion. VS Code's behavior is interesting, how individual accordion views can be set to grab all available vertical space, shoving the entries below to the bottom (which seems to be the default), or only as much as the view needs but not being user-resizeable (e.g., "Open Editors" in the Explorer accordion). Were you planning on tackling drag-to-reorder as well? |
Its easily overlooked ;)
Nice, I hadn't noticed that. Perhaps theres an optional
No, not initially anyway. I think a good first pass feature set is the ability to expand and collapse and drag resize when 2+ are expanded. Re-ordering could always come later. |
Looking great so far! |
More progress (in #3798): |
This would be a cool view, was thinking about tackling it possibly at same time as tab view refactor.
Wikipedia
Another example, this one from wpf
The text was updated successfully, but these errors were encountered: