Skip to content

View: Toggle Zoom Into Focused Editor in Group - tmux-like maximizing of only one editor #193322

@michalpokusa

Description

@michalpokusa

This Feature Request is about either adding new setting to Zen Mode, or preferably a new command that would work similarly to tmux zoom feature.

The main difference would be that currently it is only possible to maximize editor group and or toggle Zen Mode thus hiding panels sidebard etc.

The reason why I believe this feature would be useful it a scenario like this:

  • someone has multiple file or terminal editors opened, maybe even sidebar or panel opened
  • it is becoming hard to see a specific file in "full context" (sure someone could maximize it, but this would rearange other windows and still left the visible parts of other editors on the edges of the editor area)
  • one wants to make changes to a file that is opened in really small editor, lets say file3.txt
    Screenshot 2023-09-18 031910
  • command or keyboard shortcut View: Toggle Zoom Into Focused Editor in Group is used when focused on file3.txt editor
  • temporarily other editors, both file and terminal ones are hidden, and the file3.txt editor is displayed as if it was the only one open at this time
    Screenshot 2023-09-18 032647
  • potentially it could be also possible to adjust whether sidebar/panel etc. are also hidden on entering this mode, or if this mode stays open after restart
  • one makes changes to the file and wants to go back to original view state
  • command View: Toggle Zoom Into Focused Editor in Group is ran once again (alternative to it could be a looking glass icon nexxt to file name or something like this)
  • original view state from first image is restored without any changes to editor layout

This behaviour could be repeated in such a way that someone always works on "full-screen" editor while also preseving the layout of open editors. This feature is present in tmux, and enables a very efficient way of maanging multiple so called panes inside single window, but in tmux it is possible to create multiple windows.

In VSCode there is no such option which is understandable (multiple windows), but the ability to zoom in and out of specific editor (aka tmux pane) inside a VSCode instance (aka tmux window), in my opinion, would be more that enough.

Lastly, there could be multiple option that modify the behaviour of this zoom view, similarly to existing Zen Mode.

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions