Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-07-06 | window.lua: Add `c` shortcut to increase window height to bottomHEADmaster | Teddy Wing | |
A single shortcut to extend the window to the bottom of the screen. | |||
2019-07-06 | Rebuild docs | Teddy Wing | |
2019-07-03 | window.lua: Add large increment window resize hotkeys | Teddy Wing | |
Change the modifiers to match the window movement hotkeys. | |||
2019-06-17 | Update docs with new large window movement shortcuts | Teddy Wing | |
2019-06-17 | Document `i` shortcut | Teddy Wing | |
2019-06-17 | Add shortcuts to move window by large increments | Teddy Wing | |
Takes the shortcuts of the previous medium increment bindings. Medium increments now use the Shift modifier, and small increments use Option. | |||
2019-06-17 | Add README | Teddy Wing | |
2019-06-16 | Add documentation | Teddy Wing | |
Used the following Spoons as a format reference: - https://github.com/Hammerspoon/Spoons/blob/master/Source/Tunnelblick.spoon/init.lua - https://github.com/Hammerspoon/Spoons/blob/master/Source/Token.spoon/init.lua The Spoons documentation describes how to generate a required `docs.json` file: https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md Thanks to Adam Matan (https://stackoverflow.com/users/51197/adam-matan) on Stack Overflow for the tip on Make's `CURDIR` variable. Didn't know that existed. https://stackoverflow.com/questions/52437728/bash-what-is-the-difference-between-pwd-and-curdir/52447088#52447088 | |||
2019-06-16 | Convert to a Spoon | Teddy Wing | |
Convert the script to a Hammerspoon Spoon. Allows a user to set a custom binding to activate the mode. | |||
2019-06-15 | Add license (GNU GPLv3+) | Teddy Wing | |
2019-06-15 | window: Remove 'shift' from mode modifiers | Teddy Wing | |
Reduce the number of modifiers needed to activate the mode. Makes it a bit easier on the fingers. Didn't go with Ctrl-Shift because I thought it might be easier to accidentally activate with Vim window shortcuts. | |||
2019-06-15 | window: Add shortcut to move window to top | Teddy Wing | |
Quickly move a window to the top of the screen. | |||
2019-06-15 | window: Fix commands to move window to screen | Teddy Wing | |
* Don't resize the window * Don't animate window movement | |||
2019-06-15 | window.lua: Add window resize hotkeys | Teddy Wing | |
New shortcuts to resize windows, again in medium and small increments. | |||
2019-06-15 | Add window movement hotkeys | Teddy Wing | |
Create a new mode activated with <C-M-S-w> that activates hotkeys to do window management. Add hotkeys to move windows up, down, left, and right. One set of hotkeys to move by small increments and another set to move by slightly larger increments. Based on code from 'derekwyatt' (https://github.com/derekwyatt): https://github.com/fikovnik/ShiftIt/issues/296#issuecomment-438386501 > units = { > right30 = { x = 0.70, y = 0.00, w = 0.30, h = 1.00 }, > right70 = { x = 0.30, y = 0.00, w = 0.70, h = 1.00 }, > left70 = { x = 0.00, y = 0.00, w = 0.70, h = 1.00 }, > left30 = { x = 0.00, y = 0.00, w = 0.30, h = 1.00 }, > top50 = { x = 0.00, y = 0.00, w = 1.00, h = 0.50 }, > bot50 = { x = 0.00, y = 0.50, w = 1.00, h = 0.50 }, > upright30 = { x = 0.70, y = 0.00, w = 0.30, h = 0.50 }, > botright30 = { x = 0.70, y = 0.50, w = 0.30, h = 0.50 }, > upleft70 = { x = 0.00, y = 0.00, w = 0.70, h = 0.50 }, > botleft70 = { x = 0.00, y = 0.50, w = 0.70, h = 0.50 }, > maximum = { x = 0.00, y = 0.00, w = 1.00, h = 1.00 } > } > > mash = { 'shift', 'ctrl', 'cmd' } > hs.hotkey.bind(mash, 'l', function() hs.window.focusedWindow():move(units.right30, nil, true) end) > hs.hotkey.bind(mash, 'h', function() hs.window.focusedWindow():move(units.left70, nil, true) end) > hs.hotkey.bind(mash, 'k', function() hs.window.focusedWindow():move(units.top50, nil, true) end) > hs.hotkey.bind(mash, 'j', function() hs.window.focusedWindow():move(units.bot50, nil, true) end) > hs.hotkey.bind(mash, ']', function() hs.window.focusedWindow():move(units.upright30, nil, true) end) > hs.hotkey.bind(mash, '[', function() hs.window.focusedWindow():move(units.upleft70, nil, true) end) > hs.hotkey.bind(mash, ';', function() hs.window.focusedWindow():move(units.botleft70, nil, true) end) > hs.hotkey.bind(mash, "'", function() hs.window.focusedWindow():move(units.botright30, nil, true) end) > hs.hotkey.bind(mash, 'm', function() hs.window.focusedWindow():move(units.maximum, nil, true) end) |