From 4f3f75e1c926e1ad619b2b24d1a7f0459cf20e7e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 17 Jun 2019 20:00:34 +0200 Subject: Update docs with new large window movement shortcuts --- README.rst | 48 +++++++++++++++++++++++++++++------------------- docs.json | 2 +- init.lua | 21 +++++++++++++-------- 3 files changed, 43 insertions(+), 28 deletions(-) diff --git a/README.rst b/README.rst index d6f6756..f89558f 100644 --- a/README.rst +++ b/README.rst @@ -5,25 +5,35 @@ A Hammerspoon_ Spoon that provides a keyboard mode for manipulating windows. Upon activating the mode, the following shortcuts are available: -+-------+----------------------------+ -| ``h`` | Move window left 20 units | -+-------+----------------------------+ -| ``j`` | Move window down 20 units | -+-------+----------------------------+ -| ``k`` | Move window up 20 units | -+-------+----------------------------+ -| ``l`` | Move window right 20 units | -+-------+----------------------------+ - -+-------------+----------------------------+ -| ``Shift-h`` | Move window left 5 units | -+-------------+----------------------------+ -| ``Shift-j`` | Move window down 5 units | -+-------------+----------------------------+ -| ``Shift-k`` | Move window up 5 units | -+-------------+----------------------------+ -| ``Shift-l`` | Move window right 5 units | -+-------------+----------------------------+ ++-------+-----------------------------+ +| ``h`` | Move window left 100 units | ++-------+-----------------------------+ +| ``j`` | Move window down 100 units | ++-------+-----------------------------+ +| ``k`` | Move window up 100 units | ++-------+-----------------------------+ +| ``l`` | Move window right 100 units | ++-------+-----------------------------+ + ++-------------+-----------------------------+ +| ``Shift-h`` | Move window left 20 units | ++-------------+-----------------------------+ +| ``Shift-j`` | Move window down 20 units | ++-------------+-----------------------------+ +| ``Shift-k`` | Move window up 20 units | ++-------------+-----------------------------+ +| ``Shift-l`` | Move window right 20 units | ++-------------+-----------------------------+ + ++--------------+----------------------------+ +| ``Option-h`` | Move window left 5 units | ++--------------+----------------------------+ +| ``Option-j`` | Move window down 5 units | ++--------------+----------------------------+ +| ``Option-k`` | Move window up 5 units | ++--------------+----------------------------+ +| ``Option-l`` | Move window right 5 units | ++--------------+----------------------------+ +-------+---------------------+ | ``i`` | Move window to top | diff --git a/docs.json b/docs.json index 851696e..3d56c3f 100644 --- a/docs.json +++ b/docs.json @@ -23,7 +23,7 @@ "Constructor" : [ ], - "doc" : "Adds a hotkey mode for manipulating windows.\n\nUpon activating the mode, the following shortcuts are available:\n\nh: Move window left 20 units\nj: Move window down 20 units\nk: Move window up 20 units\nl: Move window right 20 units\n\nShift-h: Move window left 5 units\nShift-j: Move window down 5 units\nShift-k: Move window up 5 units\nShift-l: Move window right 5 units\n\ni: Move window to top\n\n[: Move window left one screen\n]: Move window right one screen\n\ne: Reduce window height 20 units\ns: Reduce window width 20 units\nd: Increase window height 20 units\nf: Increase window width 20 units\n\nShift-e: Reduce window height 5 units\nShift-s: Reduce window width 5 units\nShift-d: Increase window height 5 units\nShift-f: Increase window width 5 units", + "doc" : "Adds a hotkey mode for manipulating windows.\n\nUpon activating the mode, the following shortcuts are available:\n\nh: Move window left 100 units\nj: Move window down 100 units\nk: Move window up 100 units\nl: Move window right 100 units\n\nShift-h: Move window left 20 units\nShift-j: Move window down 20 units\nShift-k: Move window up 20 units\nShift-l: Move window right 20 units\n\nOption-h: Move window left 5 units\nOption-j: Move window down 5 units\nOption-k: Move window up 5 units\nOption-l: Move window right 5 units\n\ni: Move window to top\n\n[: Move window left one screen\n]: Move window right one screen\n\ne: Reduce window height 20 units\ns: Reduce window width 20 units\nd: Increase window height 20 units\nf: Increase window width 20 units\n\nShift-e: Reduce window height 5 units\nShift-s: Reduce window width 5 units\nShift-d: Increase window height 5 units\nShift-f: Increase window width 5 units", "Method" : [ { "desc" : "Bind keys for WindowMode", diff --git a/init.lua b/init.lua index a0dd423..cce2097 100644 --- a/init.lua +++ b/init.lua @@ -4,15 +4,20 @@ --- --- Upon activating the mode, the following shortcuts are available: --- ---- h: Move window left 20 units ---- j: Move window down 20 units ---- k: Move window up 20 units ---- l: Move window right 20 units +--- h: Move window left 100 units +--- j: Move window down 100 units +--- k: Move window up 100 units +--- l: Move window right 100 units --- ---- Shift-h: Move window left 5 units ---- Shift-j: Move window down 5 units ---- Shift-k: Move window up 5 units ---- Shift-l: Move window right 5 units +--- Shift-h: Move window left 20 units +--- Shift-j: Move window down 20 units +--- Shift-k: Move window up 20 units +--- Shift-l: Move window right 20 units +--- +--- Option-h: Move window left 5 units +--- Option-j: Move window down 5 units +--- Option-k: Move window up 5 units +--- Option-l: Move window right 5 units --- --- i: Move window to top --- -- cgit v1.2.3