.hammerspoon/init.lua

changeset 705
7520062c1461
parent 648
2918ff726641
child 733
45bae0da5756
equal deleted inserted replaced
704:7118c036f770 705:7520062c1461
38 cmdCtrl('right', function () focusedWindow():moveOneScreenEast() end) 38 cmdCtrl('right', function () focusedWindow():moveOneScreenEast() end)
39 39
40 cmd('return', function () 40 cmd('return', function ()
41 hs.applescript.applescript([[ 41 hs.applescript.applescript([[
42 tell application "iTerm" 42 tell application "iTerm"
43 set newterm to (create window with default profile) 43 set newterm to index of (create window with default profile)
44 activate window newterm 44 tell application "System Events" to tell process "iTerm2"
45 perform action "AXRaise" of window newterm
46 end tell
45 end tell 47 end tell
46 ]]) 48 ]])
47 end) 49 end)
48 50
49 cmdShift('return', function () os.execute('/opt/local/bin/mvim') end) 51 cmdShift('return', function () os.execute('/opt/local/bin/mvim') end)

mercurial