[hammerspoon] Fix hotkey binding
change
commit 7c8d2a5565afb8c00940e5e4d6c48d502213cb1f
author Alpha Chen <alpha.chen@gmail.com>
date
parent 0c4d6495
diff --git a/.hammerspoon/init.lua b/.hammerspoon/init.lua
index 77c53adc..42ccecbb 100644
--- a/.hammerspoon/init.lua
+++ b/.hammerspoon/init.lua
@@ -1,13 +1,14 @@
 local mash = {"cmd", "alt", "ctrl"}
+local mash = {"cmd", "alt", "ctrl", "shift"}
 
 -- Application shortcuts
 
-hs.hotkey.bind({"cmd", "shift"}, "{", function()
+hs.hotkey.bind({"cmd", "shift"}, "[", function()
   current_app():selectMenuItem({"Window", "Select Previous Tab"})
 end)
 
-hs.hotkey.bind({"cmd", "shift"}, "}", function()
-  current_app():selectMenuItem({"Window", "Select Previous Tab"})
+hs.hotkey.bind({"cmd", "shift"}, "]", function()
+  current_app():selectMenuItem({"Window", "Select Next Tab"})
 end)
 
 -- Window management
@@ -39,7 +40,7 @@ hs.hotkey.bind(mash, "l", function()
 end)
 
 function current_app()
-  return hs.window.application()
+  return hs.application.frontmostApplication()
 end
 
 function reload_config(files)