From e8fc4ec0be9626a26b2ecacce8d2372ce37f7210 Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Mon, 18 Mar 2013 16:03:59 -0500 Subject: [PATCH] More slate commands --- slate.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/slate.js b/slate.js index 0c09297..2461360 100644 --- a/slate.js +++ b/slate.js @@ -18,7 +18,20 @@ var pushRightThird = slate.operation("push", { "style" : "bar-resize:screenSizeX/3" }); +var pushUpHalf = slate.operation("push", { + "direction" : "up", + "style" : "bar-resize:screenSizeY/2" +}); + +var pushFull = slate.operation("push", { + "direction" : "up", + "style" : "bar-resize:screenSizeX" +}); + slate.bind("left:ctrl,alt,cmd", pushLeftHalf); slate.bind("left:ctrl,alt,cmd,shift", pushLeftThird); slate.bind("right:ctrl,alt,cmd", pushRightHalf); slate.bind("right:ctrl,alt,cmd,shift", pushRightThird); + +slate.bind("up:ctrl,alt,cmd", pushUpHalf); +slate.bind("up:shift,ctrl,alt,cmd", pushFull);