Skip to content

Commit ca67a25

Browse files
committed
passThrough to bindPassThrough
1 parent cd9714f commit ca67a25

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Hyper is a wrapper on
44
[hs.hotkey.modal](https://www.hammerspoon.org/docs/hs.hotkey.modal) that
55
enables PTT-style momentary access to lua automation, with an optional
6-
`passThrough` that lets you send a "Hyper chord" to an OSX application.
6+
`bindPassThrough` that lets you send a "Hyper chord" to an OSX application.
77

88
I chiefly use it to launch applications quickly from a single press, although I
99
also use it to create "universal" local bindings inspired by [Shawn Blanc's
@@ -23,7 +23,7 @@ Hyper:bind({}, 'j', function()
2323
App.launchOrFocusByBundleID('net.kovidgoyal.kitty')
2424
end)
2525
Hyper:bind({}, 'return', nil, autolayout.autoLayout)
26-
Hyper:passThrough('.', 'com.culturedcode.ThingsMac')
26+
Hyper:bindPassThrough('.', 'com.culturedcode.ThingsMac')
2727
```
2828

2929
## ⚠ Migration from 1.0
@@ -55,7 +55,7 @@ hs.fnutils.each(Config.applications, function(appConfig)
5555
end
5656
if appConfig.localBindings then
5757
hs.fnutils.each(appConfig.localBindings, function(key)
58-
Hyper:passThrough(key, appConfig.bundleID)
58+
Hyper:bindPassThrough(key, appConfig.bundleID)
5959
end)
6060
end
6161
end)

init.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
@@ -12,7 +12,7 @@
1212
local m = hs.hotkey.modal.new({}, nil)
1313

1414
m.name = "Hyper"
15-
m.version = "2.0"
15+
m.version = "2.1"
1616
m.author = "Evan Travers <evantravers@gmail.com>"
1717
m.license = "MIT <https://opensource.org/licenses/MIT>"
1818
m.homepage = "https://github.com/evantravers/Hyper.spoon"
@@ -30,14 +30,14 @@ function m:bindHotKeys(mapping)
3030
return self
3131
end
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

Comments
 (0)