Switching between layouts in Sublime Text 3
I am working on a project with a lot of files and switching between different tasks. And the presence of a large number of files open immediately clog tabs in the windows (and my brain). So I would like to be able to turn off all my panels / views like switching workspace in Linux. And when I switch back, it remembers files / views / tabs.
In short: the ability to switch between these:
Layout 1 Layout 2
---------------------------- ----------------------------
| | | | | |
| file a | file a2 | | file b | file b2 |
| (+3 tabs) | | | | |
| | | | | |
| | | | | |
| |-------------| | | |
| | file a3 | | | |
| | | | | |
---------------------------- ----------------------------
Does Sublime 3 have this feature or is there a package that can help with this?
source to share
Here is a detailed explanation for creating the layout in sublime text: example
My suggestion is to create these two layouts and put a key shortcut to both.
Install the command chain plugin. Create key shortcut for mulitple commands:
1. set layout 2
2. move focus to group 1
3. open "file b" by name [plugin]
4. move focus to group 2
5. open "file b2" by name [plugin]
Do the same for layout script 1. Here's an example of how to create a plugin to open a file called how-to-open-file-using-only-keyboard-in-sublime-text . You need to change part of this plugin because it uses an input dialog.
source to share