Fix terminal shortcut when iterm not running yet

Mon, 06 Feb 2017 09:55:30 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 06 Feb 2017 09:55:30 -0500
changeset 500
efce0f59ef14
parent 499
47fcadea275e
child 501
542f7efa51d0

Fix terminal shortcut when iterm not running yet

.hammerspoon/init.lua file | annotate | diff | comparison | revisions
--- a/.hammerspoon/init.lua
+++ b/.hammerspoon/init.lua
@@ -39,9 +39,14 @@ cmdCtrl('right', function () focusedWind
 
 cmd('return', function ()
   hs.applescript.applescript([[
-    tell application "iTerm2"
+    tell application "iTerm"
       create window with default profile
+      activate
     end tell
   ]])
 end)
 
+-- cache window frames before moving?
+-- save cache?
+-- focus by direction is a little strict
+

mercurial