Skip to content

Explore adding a second side bar #132893

Closed
Closed

Description

This issue contains the discussion around adding a second side bar. The secondary side bar would be the next step in improving layout flexibility.

A primary motivator of the second side bar is to address the scenarios expected in #26777.

The current step is understanding the various UX options that could be used to solve the problem. Below are some notes from the current exploration.

  • Side bar is a loose term here. We could introduce a second panel instead which already knows how to move to multiple orientations.
  • Second may also be limiting. As many have pointed out, should we just allow N number of panels or side bars? Limiting the number does simplify things like keybinds and general layout management and adding too many comes at the cost of complexity that many users will find less useful.
  • Currently the panel and side bar solve nearly the same purpose but the panel is drawn differently. Could we adapt the panel to turn into a side bar when it is on the left or right and then make more of them?
  • If we go with a second side bar, is it necessary to have an activity bar?

Also adding some mockups from @misolori

image
image
image
image

Activity

  1. added
    plan-item
    layout
    on Sep 10, 2021
  2. DominicVonk commented on Sep 14, 2021

    @DominicVonk

    Maybe make it possible to do vertical tabs or icons on both sidebars.

  3. paror commented on Sep 14, 2021

    @paror

    Another possibility : horizontal icons on the top of the second sidebar (not to waste space in a long vertical bar with some icons on top ...)

  4. miguelsolorio commented on Sep 14, 2021

    @miguelsolorio
    Contributor

    Here's another iteration that SteVen Batten (@sbatten) and I worked on. This idea closely follows the sidebar appearance/styling but works just like the panel (with multiple panel titles and views):

    CleanShot 2021-09-14 at 14 56 09@2x

    So this means that the panel will still be able to be placed on the left/bottom/right and the secondary sidebar can take multiple views containers:

    CleanShot 2021-09-14 at 14 55 56@2x

    We also discussed toggling the secondary sidebar via keyboard shortcuts and via the "sash" drag & adding a single click to toggle this:

    CleanShot 2021-09-14 at 15 01 37@2x

  5. DominicVonk commented on Sep 15, 2021

    @DominicVonk

    Maybe make a setting, that everyone can pick their favorite. I would really like the activity bar because then I feel more organized.

  6. sbatten commented on Sep 15, 2021

    @sbatten
    MemberAuthor

    Adding some screenshots comparing a full length second side bar and editor length side bar

    Full-Length
    image

    Editor-Length
    image

  7. wzhudev commented on Sep 17, 2021

    @wzhudev

    Great to have this feature!

  8. heartacker commented on Sep 17, 2021

    @heartacker
    Contributor

    SteVen Batten (@sbatten) Thanks
    and IMO, I want the new side bar like this,

    image

    exactly, I believe that floating panel is a good solution for user, like ^VS2019, the visual studio float panel is very useful and powerful, we could use for reference.

    there is the float panel(FP) of vs2019, and some of those features are yummy

    • when the FP is hide, there are titles standing by side.
    • when click the of title of FP, the FP show, we can do something like navigation, but after lost the focus, the FP automatically hide in order to maximize the editor view
    • we could also PIN those FP for persist view.
      AA

    #26777 (comment)

  9. DominicVonk commented on Sep 22, 2021

    @DominicVonk

    I would prefer Full-Length SteVen Batten (@sbatten)

  10. mhanuszh commented on Sep 22, 2021

    @mhanuszh

    I would prefer Full-Length SteVen Batten (@sbatten)

    How about a setting for it?

  11. DominicVonk commented on Sep 24, 2021

    @DominicVonk

    I have it enabled with the setting "workbench.experimental.sidePanel.enabled". And it already looks promising. But I would also like side tabs please.

  12. 41 remaining items

  13. heartacker commented on Jan 17, 2022

    @heartacker
    Contributor

    image
    seem that the icon is some bigger that other three in visual

  14. nidefawl commented on Jan 17, 2022

    @nidefawl

    The second sidebar is a great addition.

    One bug I came across today:
    I have the references view in the extra sidebar, I enabled it in the workspace config.
    When I open a new workspace that has the sidebar disabled it fails to open the references view when use 'Find all references'.

  15. sbatten commented on Jan 18, 2022

    @sbatten
    MemberAuthor

    Michael H (@nidefawl) in the latest insiders builds, the side bar can no longer be "disabled" so this should no longer be an issue. please follow up if you are still seeing it in those builds

    as for the icon heartacker, we are still playing around with this icon, feedback is noted. cc @misolori

  16. heartacker commented on Jan 19, 2022

    @heartacker
    Contributor

    {
    "command": "workbench.action.toggleMaximizedPanel"
    }
    SteVen Batten (@sbatten) the command seems to maximize the side panel, not the panel

  17. sbatten commented on Jan 19, 2022

    @sbatten
    MemberAuthor

    heartacker are you using a non-center panel alignment?

  18. heartacker commented on Jan 20, 2022

    @heartacker
    Contributor

    SteVen Batten (@sbatten) there is the gif pic

    sidepanel

  19. sbatten commented on Jan 20, 2022

    @sbatten
    MemberAuthor

    heartacker I attempted to support maximization of the panel in the non-centered panel alignment scenario but our grid widget has some issues with it at the moment. as such, I've had to disable panel maximization in this case while we look into proper support for this.

  20. heartacker commented on Jan 21, 2022

    @heartacker
    Contributor

    SteVen Batten (@sbatten) thanks for ur clarify, so I want to set the penel aligning by center. but

    1. I cannot see any setting about panel align or align penel
      image
    2. I cannot align panel by center through command prompt, there are only two commands without align center

    image
    3. finish I find it is menu view

    maybe we could improve the ux.
    for example:
    add setting to panel right click menu
    image

  21. sbatten commented on Jan 21, 2022

    @sbatten
    MemberAuthor

    heartacker thanks for testing this out, it highlights a discoverability issue with the command titles. in today's insiders, there are a few ways to tweak the panel alignment.

    Command Palette

    image

    Note In the next build, all panel alignment commands will be of the form Set Panel Alignment to ...

    Appearance Menu

    image

    Control Layout to Customize Layout...

    image

    image

  22. sbatten commented on Jan 21, 2022

    @sbatten
    MemberAuthor

    Closing this issue as the exploration phase is over. Please file new issues for feedback, bugs, and requests.

  23. locked and limited conversation to collaborators on Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestlayouton-testplanplan-item

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions