Switch shortcut to launch goneovim

Thu, 09 Mar 2023 10:56:04 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 09 Mar 2023 10:56:04 -0600
changeset 1072
68ed15b14844
parent 1071
e76020af023d
child 1073
911aa9d81e71

Switch shortcut to launch goneovim

.hammerspoon/init.lua file | annotate | diff | comparison | revisions
--- a/.hammerspoon/init.lua
+++ b/.hammerspoon/init.lua
@@ -48,17 +48,11 @@ cmdCtrl('left',  function () focusedWind
 cmdCtrl('right', function () focusedWindow():moveOneScreenEast() end)
 
 cmd('return', function ()
-  local a = findOrLaunch('iTerm')
+  local a = findOrLaunch('iTerm2')
   a:selectMenuItem({"Shell", "New Window"})
   a:activate()
 end)
 
 cmdShift('return', function ()
-  os.execute(os.getenv('SHELL')..' -l -i -c "exec mvim"')
+  os.execute(os.getenv('SHELL')..' -l -i -c "goneovim &>/dev/null &"')
 end)
-
-cmdCtrl('return', function ()
-  local a = findOrLaunch('MacVim')
-  a:selectMenuItem({"File", "New Window"})
-  a:activate()
-end)

mercurial