Skip to content

Instantly share code, notes, and snippets.

@hcgatewood
Last active April 10, 2025 03:32
Show Gist options
  • Save hcgatewood/227eed01dd64f0d077d503c43540ab11 to your computer and use it in GitHub Desktop.
Save hcgatewood/227eed01dd64f0d077d503c43540ab11 to your computer and use it in GitHub Desktop.
Open Chrome bookmarks with hotkeys

Open Chrome Bookmarks with Keyboard Shortcuts

This guide outlines steps to create a custom dialer for Google Chrome on macOS, i.e. opening specific URLs with simple keyboard shortcuts.

The goal is to recreate Safari's affordance of ⌘1 opening your 1st bookmark, ⌘2 opening your 2nd bookmark, etc.

Prerequisites

  1. Install BetterTouchTool

Create triggers

  1. Enter the application-specific triggers section for Google Chrome
  2. Create a trigger with keyboard shortcut e.g. ⌘1 with the action Run Apple Script (blocking), configured to the source type "Apple Script" with the following example contents
set theUrl to "https://example.com"

tell application "Google Chrome"
    set URL of active tab of front window to theUrl
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment