dotfiles/talon/user/community/apps/slack/slack_win.py

46 lines
1,000 B
Python

from talon import Context, actions
ctx = Context()
ctx.matches = r"""
os: windows
os: linux
app: slack
"""
@ctx.action_class("user")
class UserActions:
def messaging_workspace_previous():
actions.key("ctrl-shift-tab")
def messaging_workspace_next():
actions.key("ctrl-tab")
def messaging_open_channel_picker():
actions.key("ctrl-k")
def messaging_channel_previous():
actions.key("alt-up")
def messaging_channel_next():
actions.key("alt-down")
def messaging_unread_previous():
actions.key("alt-shift-up")
def messaging_unread_next():
actions.key("alt-shift-down")
# (go | undo | toggle) full: key(ctrl-cmd-f)
def messaging_open_search():
actions.key("ctrl-f")
def messaging_mark_workspace_read():
actions.key("shift-esc")
def messaging_mark_channel_read():
actions.key("esc")
# Files and Snippets
def messaging_upload_file():
actions.key("ctrl-u")