kbd://DevDeck
Officialproductivity

Gmail Shortcuts

Auto-switching deck active in Gmail with compose, reply, mark-read, delete, and search.

Adds a 'Gmail' context auto-activating on mail.google.com, with 5 inbox shortcuts

Recipe TOML

[contexts.gmail]
name = "Gmail"
deck = "gmail"
priority = 60

[contexts.gmail.match]
frontmost_bundle_ids = ["com.google.Chrome", "com.apple.Safari"]
frontmost_app_names = ["Google Chrome", "Safari"]
url_contains = ["mail.google.com"]

[[commands]]
description = "Compose"
action = "osascript -e 'tell application \"System Events\" to keystroke \"c\"'"
icon = "square.and.pencil"
type = "action"
context = "gmail"

[[commands]]
description = "Reply"
action = "osascript -e 'tell application \"System Events\" to keystroke \"r\"'"
icon = "arrowshape.turn.up.left"
type = "action"
context = "gmail"

[[commands]]
description = "Mark as Read"
action = "osascript -e 'tell application \"System Events\" to keystroke \"i\" using shift down'"
icon = "envelope.open"
type = "action"
context = "gmail"

[[commands]]
description = "Delete"
action = "osascript -e 'tell application \"System Events\" to keystroke \"#\"'"
icon = "trash"
type = "action"
context = "gmail"

[[commands]]
description = "Search"
action = "osascript -e 'tell application \"System Events\" to keystroke \"/\"'"
icon = "magnifyingglass"
type = "action"
context = "gmail"