ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Max​Pane

by jisaacks ST2/ST3

Sublime Text plugin to quickly maximize a pane in a multi pane layout without resetting the layout.

Details

  • 2019.08.08.09.48.59
  • github.​com
  • github.​com
  • 1 month ago
  • 54 minutes ago
  • 6 years ago

Installs

  • Total 4K
  • Win 1K
  • OS X 1K
  • Linux 949
Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1
Windows 0 0 1 0 1 0 1 0 2 1 1 2 0 5 0 0 0 0 1 0 1 0 1 1 0 1 1 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 1 0 0 1
OS X 0 1 0 1 0 1 0 0 0 1 0 1 0 0 0 1 1 0 1 0 0 0 0 1 0 0 1 1 0 0 1 2 1 1 2 0 1 1 1 1 0 1 0 1 0 0
Linux 0 0 1 2 2 0 1 0 0 1 3 1 0 1 0 0 1 0 2 0 0 1 2 0 1 2 0 1 0 0 0 0 0 1 1 0 1 1 0 1 1 1 0 1 1 0

Readme

Source
raw.​githubusercontent.​com

MaxPane

Easily maximize/unmaximize a pane without resetting your multi-pane setup.

Ever use a multi pane setup in Sublime Text and want to maximize a single pane for a bit, and be able to switch back to the multi pane layout again when done? Without losing the positions all your files were in. You know like how iTerm does.

Then MaxPane is for you.

So lets say you have this multi pane setup:

dual pane

and you want to maximize the active (top left) pane for a sec.

Just press ctrl + k, ctrl + f (Linux/Windows) / super + k, super + f (MacOS) and the active pane is now maximized:

single pane

Press ctrl + k, ctrl + f (Linux/Windows) / super + k, super + f (MacOS) another time and its back:

dual pane

It also works great with BetterTabCycling, Origami and Distraction Free Window!

Switch Panes

MacOS users can switch panes with the key bindings:

cmd + ctrl + ← - focus previous pane

cmd + ctrl + → - focus next pane

Sublime Text 2

Windows / Linux users need to setup their own key bindings.

The following examples show possible key bindings to imitate Sublime Text 3 behaviour.

User/Default (Linux).sublime-keymap:

{ "keys": ["ctrl+k", "ctrl+left"], "command": "unshift_pane" },
    { "keys": ["ctrl+k", "ctrl+right"], "command": "shift_pane" },

User/Default (OSX).sublime-keymap:

{ "keys": ["super+k", "super+left"], "command": "unshift_pane" },
    { "keys": ["super+k", "super+right"], "command": "shift_pane" },

User/Default (Windows).sublime-keymap:

{ "keys": ["ctrl+k", "ctrl+left"], "command": "unshift_pane" },
    { "keys": ["ctrl+k", "ctrl+right"], "command": "shift_pane" },

Sublime Text 3

You can switch panes with the built-in key bindings provided by Sublime Text 3 out of the box:

Linux/Windows

ctrl + k, ctrl + ← - focus previous pane

ctrl + k, ctrl + → - focus next pane

MacOS

super + k, super + ← - focus previous pane

super + k, super + → - focus next pane

If you want to modify them, you can look for the focus_neighboring_group in…

Default/Default (Linux).sublime-keymap:

{ "keys": ["ctrl+k", "ctrl+left"], "command": "focus_neighboring_group", "args": {"forward": false} },
    { "keys": ["ctrl+k", "ctrl+right"], "command": "focus_neighboring_group" },

Default/Default (OSX).sublime-keymap:

{ "keys": ["super+k", "super+left"], "command": "focus_neighboring_group", "args": {"forward": false} },
    { "keys": ["super+k", "super+right"], "command": "focus_neighboring_group" },

Default/Default (Windows).sublime-keymap:

{ "keys": ["ctrl+k", "ctrl+left"], "command": "focus_neighboring_group", "args": {"forward": false} },
    { "keys": ["ctrl+k", "ctrl+right"], "command": "focus_neighboring_group" },

Deprecation Notice

The built-in focus_neighboring_group command replaces both shift_pane and unshift_pane. Therefore they are provided for compatibility with existing key bindings only and might be disabled for use in Sublime Text 3 in a future release.

Installation

Install via Package Control