Skip to content

feat(desktop): add tab navigation hotkeys (⌘⌥1-9)#1126

Merged
Kitenite merged 4 commits into
mainfrom
kitenite/add-tab-nav-keys
Feb 2, 2026
Merged

feat(desktop): add tab navigation hotkeys (⌘⌥1-9)#1126
Kitenite merged 4 commits into
mainfrom
kitenite/add-tab-nav-keys

Conversation

@Kitenite
Copy link
Copy Markdown
Collaborator

@Kitenite Kitenite commented Feb 2, 2026

Summary

  • Add keyboard shortcuts to jump directly to tabs 1-9 using ⌘⌥1-9
  • Matches the existing tab arrow pattern (⌘⌥←/→ for prev/next tab)

Test plan

  • Open the desktop app with multiple tabs
  • Press ⌘⌥1 to switch to tab 1
  • Press ⌘⌥2-9 to switch to corresponding tabs
  • Verify existing shortcuts still work (workspaces ⌘1-9, tab arrows ⌘⌥←/→, presets ctrl+1-9)

Summary by CodeRabbit

  • New Features
    • Added keyboard shortcuts to jump directly to workspace tabs 1–9. Press Meta+Shift+1–9 (or the platform-appropriate modifier) to switch to the corresponding tab, improving keyboard-driven navigation and productivity in the workspace dashboard.

Add keyboard shortcuts to jump directly to tabs 1-9 using ⌘⌥1-9,
matching the existing tab arrow pattern (⌘⌥←/→ for prev/next tab).
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 2, 2026

Warning

Rate limit exceeded

@Kitenite has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 23 minutes and 7 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📝 Walkthrough

Walkthrough

Adds keyboard-driven tab jumping: a switchToTab(index) helper in the workspace dashboard and registration of nine new hotkeys (JUMP_TO_TAB_1–JUMP_TO_TAB_9). Hotkey definitions updated to support digit key matching (meta+shift+1..9).

Changes

Cohort / File(s) Summary
Workspace Dashboard Tab Navigation
apps/desktop/src/renderer/routes/_authenticated/_dashboard/workspace/$workspaceId/page.tsx
Adds switchToTab(index) helper and registers hotkey handlers for JUMP_TO_TAB_1JUMP_TO_TAB_9, invoking the helper with indices 0–8 to activate tabs if present.
Shared Hotkeys Configuration
apps/desktop/src/shared/hotkeys.ts
Updates matchesHotkeyEvent to handle digit keys on macOS via event.code and adds nine new HOTKEYS entries JUMP_TO_TAB_1JUMP_TO_TAB_9 with meta+shift+<n> bindings and labels "Switch to Tab ".

Sequence Diagram(s)

(Skipped — changes are localized and the flow is simple.)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • CharlieHelps

Poem

🐰
I hop to tabs with a tap and a spin,
Meta+shift numbers — a speedy new grin.
From one to nine I skip and I play,
A tiny rabbit, keyboard ballet. 🥕✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding tab navigation hotkeys using keyboard shortcuts (⌘⌥1-9) for the desktop app.
Description check ✅ Passed The PR description provides a clear summary and test plan, though it deviates from the template structure with missing formal sections like 'Type of Change' and 'Related Issues'.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch kitenite/add-tab-nav-keys

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

On Mac, Option+number produces special characters (e.g., Option+1 = ¡).
Use event.code to match digit keys when alt modifier is pressed.
Simpler binding that avoids Mac Option+number special character issues.
The event.code workaround handles Option+number special characters.
@Kitenite Kitenite merged commit cf65740 into main Feb 2, 2026
5 checks passed
@Kitenite Kitenite deleted the kitenite/add-tab-nav-keys branch February 2, 2026 04:32
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 2, 2026

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ⚠️ Neon database branch
  • ⚠️ Electric Fly.io app

Thank you for your contribution! 🎉

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