Reputation: 463
I love Sublime Text. I work with 2 panes (columns) open, jumping from one to the other. Whenever going from one pane to the other, I typically resize it some amount. To do this, I must position the mouse over just right of the vertical scrollbar until I see the double horizontal arrows appear. Sometimes it's a pain to hit just the right spot to grip for resizing.
I've used other apps where there's a shortcut key that automatically snaps me to horizontal resizing arrows. Is there such a shortcut key (or package) in Sublime Text? My searching has turned up empty handed.
Thanks!
Upvotes: 14
Views: 3377
Reputation: 10454
I prefer Origami with origami_auto_zoom_on_focus
in addition to ControlCmdLeft or Right to reset the panes.
{
"keys": ["ctrl+super+left"],
"command": "set_layout",
"args": {
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]],
},
},
{
"keys": ["ctrl+super+right"],
"command": "set_layout",
"args": {
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]],
},
},
On my Mac I use Spectacle with similar bindings, but on FnOptionLeft or Right
Upvotes: 0
Reputation: 1634
The PanePane sublime package will allow you to resize panes via keyboard shortcuts.
Upvotes: 6
Reputation: 493
Open
Preferences -> Key Bindings - User
and add
{
"keys": ["ctrl+super+left"]
,"command": "set_layout"
,"args": {
"cols": [0.0, 0.75, 1.0]
,"rows": [0.0, 1.0]
,"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
{
"keys": ["ctrl+super+right"]
,"command": "set_layout"
,"args": {
"cols": [0.0, 0.25, 1.0]
,"rows": [0.0, 1.0]
,"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
{
"keys": ["ctrl+super+up"]
,"command": "set_layout"
,"args": {
"cols": [0.0, 0.5, 1.0]
,"rows": [0.0, 1.0]
,"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
}
ctrl + super + left = enlarges left pane
ctrl + super + right = enlarges right pane
ctrl + super + up = makes both panes same size
Upvotes: 15