Switch between layouts in Sublime Text 3

I am using Sublime Text 3. I have a layout with a screen height column on the left and three panels on the right (see image below). This setting is great (especially with the Golden Ratio plugin), but I still miss the one function I had in vim. I had a hotkey, due to which the panel focused on the entire window, for example, in full screen mode for a single file. When done, you can enter the hotkey again to return to the previous layout. It is as if the original layout of the panels is saved, and the focused panel temporarily takes over the entire window, and when you finish editing the full-screen file, the program remembers how things were laid out and returned to this. Here is an example of ASCII-art:

BEFORE AFTER ---------------------------- ---------------------------- | | | | | | | | | | | |-------------| | | | | | | | | | | | | | |-------------| | | | | | | | | | | | | ---------------------------- ---------------------------- 

By typing a hot key, you switch from BEFORE to AFTER ; entering the same hotkey will return you to BEFORE again, with the same layout and the same tabs in each panel.

Is there a way to do this in Sublime Text 3, including a plugin that can enable this? If the reader knows how to write Sublime plugins, how much do you think that such a plugin will be written? I would suggest that it will not be so bad: the question of where the place is, and the Sublime program message to return to this when switching from full-screen mode.

+6
source share
3 answers

I know this is the year, but the MaxPane plugin solves this problem.

https://github.com/jisaacks/MaxPane

Install through the package manager, and then use the Shift Enter command to switch the panel between full-screen and inside the layout you are using.

+9
source

You can try to use Origami , it helps to organize layouts, it does not have what you want, but it has a zoom function, here is the author’s quote:

In addition, Origami allows you to scale the current panel, making it take most of the window. As above, first press super + k, then press:

super + z: scale the current panel so that it occupies 90% of the screen (the fraction is changeable in the key bindings) shift + super + z: Unzoom: the same space of all panels (Note: Windows and Linux use ctrl instead of super.)

There is currently no way to do what you want, although you can try creating a plugin yourself

+4
source

You can also select 1 , one default switch for the panel: ALT + SHIFT + 1 - 3

https://superuser.com/questions/368785/switch-between-columns-active-tabs-in-sublime-text-2/424987#424987

0
source

Source: https://habr.com/ru/post/954741/


All Articles