Slack, "Jump to conversation", and a global shortcut

Slack's "Jump to conversation" Cmd-K shortcut is really useful to quickly contact one of our burgeoning staff or channels. Unfortunately, Cmd-K only works when Slack is the front-most application. Further, since Slack does not provide a "Jump to conversation" menu item you can't use the Keyboard System Preferences to make a global shortcut. So I wrote a small Service, SlackCommandK.workflow [1], that when run sends a Command-K to Slack. I then assigned it the Ctr-Cmd-K global shortcut. (I need to add Ctr as Cmd-K is used in other applications and their use of Cmd-K trumps the global use.)

To use the service download it, unzip it, launch it, give permission [2], install it, and then go to the Keyboard System Preferences to add the Ctr-Cmd-K shortcut.

[1] This is how tiny it is
tell application "Slack" to activate
tell application "System Events"
    keystroke "k" using command down
end tell
[2] Since this Service is not signed you will also need to override the default restriction on unsigned applications using the Security & Privacy System Preference. Go to its General tab and press Open Anyway button next to the text
"SlackCommandK.workflow" was blocked from opening because it is not from an identified developer."

No comments: