1. Right-click conversation in left sidebar, choose "Close conversation"
2. Click the little "x" on the right side of a conversation (also in the left sidebar)
3. Use the "/leave" command within a channel or DM (it is relevant to note that doing so in a channel results in a popup asking for confirmation, whereas leaving a DM chat does not ask confirmation, it just closes it)
Obviously the third option seems like best route for a hotkey. So I created a simple one, but I found that Slack doesn't accept the input that fast so I added some sleeps to accommodate:
Code: Select all
^w::
Send /
Sleep 200
Send leave{ENTER}
Sleep 200
Send {ENTER}
return
Does anyone have a more elegant, more precise, or more reliable hotkey for closing a Slack conversation?