11--- === Hyper ===
22---
33--- Hyper is a wrapper on hs.hotkey.modal that enables PTT-style momentary
4- --- access to lua automation, with an optional `passThrough ` that lets you send
5- --- a "Hyper chord" to an OSX application.
4+ --- access to lua automation, with an optional `bindPassThrough ` that lets you
5+ --- send a "Hyper chord" to an OSX application.
66---
77--- I chiefly use it to launch applications quickly from a single press,
88--- although I also use it to create "universal" local bindings inspired by
1212local m = hs .hotkey .modal .new ({}, nil )
1313
1414m .name = " Hyper"
15- m .version = " 2.0 "
15+ m .version = " 2.1 "
1616m .author = " Evan Travers <evantravers@gmail.com>"
1717m .license = " MIT <https://opensource.org/licenses/MIT>"
1818m .homepage = " https://github.com/evantravers/Hyper.spoon"
@@ -30,14 +30,14 @@ function m:bindHotKeys(mapping)
3030 return self
3131end
3232
33- --- Hyper:passThrough (key, bundleId) -> hs.hotkey.modal
33+ --- Hyper:bindPassThrough (key, bundleId) -> hs.hotkey.modal
3434--- Method
3535--- Ensures the bundleId's application is running, then sends the "hyper-chord"
3636--- (⌘+⌥+⌃+⇧) plus whatever you set as `key`.
3737---
3838--- Returns:
3939--- * self
40- function m :passThrough (key , app )
40+ function m :bindPassThrough (key , app )
4141 m :bind ({}, key , nil , function ()
4242 if hs .application .get (app ) then
4343 hs .eventtap .keyStroke ({' cmd' ,' alt' ,' shift' ,' ctrl' }, key )
0 commit comments