Open bitwisecook opened 3 years ago
Something like this can also be done using Hammerspoon:
local cmd_shift = {"shift", "cmd"}
hs.hotkey.bind(cmd_shift, 'b', function() hs.application.launchOrFocus("Boop") end)
I've also done similar with Alfred https://github.com/pearcenuk/Alfred-public/tree/main/BOOPy
If you have text selected, Boop installs a global shortcut, ⌃⌥⌘B, that will send that text to Boop and open it if it's not already open.
And if you still want a shortcut to open Boop even without selected text, it's fairly easy to do now with the Shortcuts app:
If you have text selected, Boop installs a global shortcut, ⌃⌥⌘B, that will send that text to Boop and open it if it's not already open.
This is good to know. Could an option to change the global shortcut be added to settings? This would have the added benefit of making the existence of the feature more obvious.
It appears to be defined in https://github.com/IvanMathy/Boop/blob/main/Boop/Boop/Info.plist - I couldn't find a ton of documentation on it outside of https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/SysServices/Articles/properties.html, but there didn't seem to be an obvious way to make it dynamic. That said, you could theoretically change it directly in /Applications/Boop.app/Contents/Info.plist
and clear your services cache.
Curiosity got the better of me - I did end up finding some evidence of being able to change it dynamically: https://stackoverflow.com/questions/18776369/set-custom-keyequivalent-in-services-menu.
Having a global shortcut key to launch Boop with the paste buffer is incredibly useful. I currently achieve it with Automator but it would be useful to build this into the tool itself. This would require System Preferences > Security & Privacy > Accessibility permissions.
I currently do this with Automator.
Optional, before step 6,