Skip to content

Toggle visibility of Editor Groups #109771

Closed

Description

@zain-ak

I was thinking of being able to toggle the visibility of editor groups so that space can be freed up when you're focusing on windows in one group. This would be done in two ways:

1.) A minimize-maximize button next to the split editor and additional options buttons on the right of every editor Screen Shot 2020-10-30 at 22 17 59

2.) Shortcut keys that could toggle visibility on and off, focusing on specific editor groups using the initial shortcut as the start of a chord, and then perhaps entering the nth number on the keyboard to refer to the specific editor group in sequence.

When the editor group is minimized, it could be stacked on the left like a pinned tab in chrome, perhaps in the next editor on its right or in a dedicated space (I think this is preferable), with a maximize icon and icon denoting which editor group it is. An example: if you have 4 editor groups open and you minimize the 2nd & 3rd, where would you stack them? In this case a dedicated between the sidebar and first editor group denoting its number in the sequence of overall editor groups.

Of course, you don't want this little space to take up too much space, so you could have an additional options button with a dropdown after a certain number of editor groups are closed.

P.S This is my first feature request, and I'm interested in attempting to implement it myself. Please let me know whether this is a feasible thing to pursue, or if I should perhaps look to build it as an extension.

Activity

  1. added
    feature-request
    workbench-editors
    on Oct 31, 2020
  2. vscode-triage-bot commented on Oct 31, 2020

    @vscode-triage-bot

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  3. stagefright5 commented on Nov 30, 2020

    @stagefright5

    I can think of few features that can be included in this:

    • Minimize an editor group
    • Name the minimized editor groups
    • Ability to add a single editor tab to the named group (using context menu, for example)
    • Ability to select the editor tab/s and add selected tabs to a named group
    • Add the focused editor group tabs to a new minimized group
    • Add the focused editor group tabs to an existing group
    • Restore the minimized editor tab group into the current open/focused editor group
    • Restore the minimized editor tab group into a new editor group (to right, left, down or up)

    Please feel free to modify or add your suggestions

  4. vscode-triage-bot commented on Dec 21, 2020

    @vscode-triage-bot

    This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  5. vscode-triage-bot commented on Dec 24, 2020

    @vscode-triage-bot

    🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  6. brianblakely commented on Jul 29, 2021

    @brianblakely

    I'd like to pile on top of this request:

    Peek a minimized editor group. Peek triggers could be the following:

    • Hovering over its minimized representation.
    • Long-holding (mousedown/pointerdown) its minimized representation.
    • Holding or toggling a key shortcut.

    The use-case is for referencing code/text related to one's current work, without permanently occupying a lot of screen space. I think of the minimized editor group as a "sidekick" to the non-minimized groups.

  7. added
    workbench-editor-groups
    and removed
    workbench-editors
    on Aug 19, 2021
  8. added
    *out-of-scope
    on Oct 5, 2021
  9. vscode-triage-bot commented on Oct 5, 2021

    @vscode-triage-bot

    We closed this issue because we don't plan to address it in the foreseeable future. You can find more detailed information about our decision-making process here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

    If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

    Thanks for your understanding and happy coding!

  10. a-pav commented on Dec 29, 2022

    @a-pav

    Currently when you minimize an editor it still occupies too much space, and is distracting. Besides, using the slider and mouse to resize the editor back and forth is... frustrating. Creating and destroying editors is not an option either. The ability to toggle visibility of editors (with their states preserved) is a very much needed feature. I don't know if vscode supports this, but it would be even greater if we could make the editor visible by key press and hide it by key release.

  11. jcole099 commented on Jan 2, 2023

    @jcole099

    I made an AutoHotKey (AHK) script that opens and closes a second editor group with a single hotkey. The hotkey I'm using is Numpad0. Leaving this here incase anyone wants a quick solution to a similar issue that I have experienced. Here is the code:

    ;first keypress: splits tab 2 in group 1
    ;second keypress: closes group 2
    ;requirement is that the tab to be split is in the second position of editor group 1

    toggle:=1 ;set variable
    Numpad0::
    toggle := !toggle ;invert variable
    If (!toggle) {
    send, ^1 ;select group 1
    send, !2 ;select tab 2
    send, ^\ ;split tab 2
    send, ^1 ;select group 1
    send, !1 ;select tab 1
    }
    else
    {
    send, ^2 ;select group 2
    send, ^{F4} ;close window
    }
    Return

  12. a-pav commented on Jan 2, 2023

    @a-pav

    I made an AutoHotKey (AHK) script that opens and closes a second editor group with a single hotkey.

    I think this issue is mostly about a feature that this extension tries to fulfill.

    But I guess, ultimately, this cannot be done properly by an extension. For example, this extension doesn't keep the state of the editor group which it minimizes (i.e. what line number you were before minimizing the group, what editor was in the focus, etc.). Besides it seemed buggy in a few tries I had (I tried to minimize the second group but it minimized the first group too. And also restored the second group into the first group a few times.)

    Basically in VSCode as we currently have it, you either have an opened editor group, or you don't. We like to have the option to hide or minimize groups on demand and not need to close them off completely.

  13. a-pav commented on Nov 5, 2023

    @a-pav

    Hola! This is now possible in v1.84 release and it's exactly how it should be!
    Maximize Editor Group

  14. kingpatrickj commented on May 5, 2024

    @kingpatrickj

    This feature only allows for working within one group while all the rest are minimized. It's still missing the functionality of hiding only one group while other groups are left open. For example, I might be working in two files and need a third for reference. Being able to toggle the visibility of ONLY the reference group would mean I can still work in both working groups at the same time.

  15. a-pav commented on May 8, 2024

    @a-pav

    You're right. This feature currently works like the zoom feature of tmux, it only zooms into one single editor (or tmux' pane) while minimizing all the rest.

    I might be wrong but I think the problem is that in vscode there is no concept as pane, as in dual pane file managers for example. In vscode, everything seems to be an editor or editor group, and when you split an editor to the right, you're actually creating a different, separate editor group, which is not the same as a pane attached to its parent editor group and being part of its layout.

  16. profxavr commented on Oct 2, 2024

    @profxavr

    I am also desperately hoping this feature gets added. My editor groupings are usually quite meaningful to me, and once I have a specific set of tabs open, I don't necessarily want to part with them. But sometimes you need to start an entirely new task thread, so you need an entirely new set of groups within vscode.

    I think the current best solution is opening a new window, but that FEELS messier than just having, essentially, VSCode's own internal windowing with groups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *out-of-scopefeature-requestworkbench-editor-groups

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions