

Another example of where I use it is with Hammerspoon via hyper + \ to open anycomplete to help with spelling complicated words. I even use them to open the quick add modal for GoodTask via hyper + '.

Hyper key shortcuts work well to access other applications in a global context. I have several combinations which open/hide various applications: The one thing that you need to do is ensure that the trigger’s behaviour is set to “Pass through modifier keys (Fastest)” (as illustrated in the following image), otherwise, there will be a slight delay in the action being performed. Simulate typing or pasting Simulate Enter. do some example like below: local function pressFn(mods, oldKey, newKey) return function() if hs.ontmostApplication():name() 'Emacs' then - It does. This allows the hotkey triggers to perform an action. The second task is a macro like the following, which would use a keystroke to automatically place my cursor in the address bar of my active browser window, paste or type a URL, and input the Enter key to navigate to that URL. I made a new workflow that has multiple hotkey triggers that use the hyper key in combination with a single character. In HammerText.spoon file at bottom I pasted below code.
HAMMERSPOON KEYSTROKE EXAMPLE CODE
In '/.hammerspoon/Spoons' folder created a file 'HammerText.spoon' and pasted your code again.
HAMMERSPOON KEYSTROKE EXAMPLE INSTALL
I personally use Karabiner-Elements to enable a hyper key, but any of the following should do the trick. Install Hammerspoon and gave it accessibility permission. This inspired me to look at how I could use this new modifier key. I first heard about the hyper key from an article Steve Losh wrote which touched on the subject. – BetterTouchTool’s documentation on the hyper key The Hyper KeyĪ Hyper Key is a magical key that automatically presses all the standard modifiers (ctrl+shift+cmd+opt). This is tailored to a MacOS system…although I wouldn’t be surprised if you could find alternatives for a Linux or Windows environment. This does require a bit of setup to make it work, but the payoff is pretty nice as you’ll be saving keystrokes and/or mouse/trackpad movements. The hyper key is great because no application expects you to hold all modifier keys at the same time, which sets it up perfectly for a global hotkey. My primary usage of the hyper key is to open/hide applications with global hotkeys. I find I can work more efficiently by keeping my hands on the keyboard, which is a great thing as a developer. My keyboard sees a lot of use, and where possible I try not to reach for the mouse/trackpad.
