Skip to content

feat: add global hotkeys system with keyboard shortcut discovery#277

Merged
ruudandriessen merged 1 commit intomainfrom
ruudandriessen/tanstack-hotkeys
Mar 10, 2026
Merged

feat: add global hotkeys system with keyboard shortcut discovery#277
ruudandriessen merged 1 commit intomainfrom
ruudandriessen/tanstack-hotkeys

Conversation

@ruudandriessen
Copy link
Copy Markdown
Owner

Summary

Introduces a centralized hotkey system with keyboard shortcut discovery UI. Users can now press Cmd+N (or Ctrl+N) to create a new task and Cmd+Shift+P to create a PR. Shortcuts are discoverable via inline badges and tooltips.

New components:

  • Kbd: Platform-aware keyboard shortcut badge (⌘ on Mac, Ctrl on Windows)
  • Tooltip: Shadcn-style tooltip wrapping Radix UI, neobrutal styled
  • hotkeys registry: Centralized hotkey definitions

Integrated hotkeys:

  • New task (Cmd+N): Inline in full-size button, tooltip in sidebar icon-only version
  • Create PR (Cmd+Shift+P): Inline in task page header button, enabled when branch exists and PR doesn't

Built on @tanstack/react-hotkeys for event handling.

🤖 Generated with Claude Code

Introduce a centralized hotkey registry and UI components for discovering keyboard shortcuts. Includes:
- Hotkey registry (Cmd+N for new task, Cmd+Shift+P for create PR)
- Kbd component for displaying platform-specific key badges (⌘ on Mac, Ctrl on Windows)
- Tooltip component wrapping Radix UI, styled neobrutal
- NewTaskButton with inline kbd (full size) and tooltip on hover (sidebar icon)
- Create PR button with inline kbd shortcut

Uses @tanstack/react-hotkeys for event handling and singleton manager pattern.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clanki-ai Ready Ready Preview, Comment Mar 10, 2026 8:06pm
clanki-ai-marketing Ready Ready Preview, Comment Mar 10, 2026 8:06pm

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@ruudandriessen ruudandriessen merged commit 7bce835 into main Mar 10, 2026
8 checks passed
@ruudandriessen ruudandriessen deleted the ruudandriessen/tanstack-hotkeys branch March 10, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant