Skip to content

feat(desktop): add Cmd+F shortcut to focus search in Tasks view#1098

Merged
saddlepaddle merged 1 commit into
mainfrom
add-cmd-f-keyboard-shortcut-to-focus-search-in-tas
Jan 31, 2026
Merged

feat(desktop): add Cmd+F shortcut to focus search in Tasks view#1098
saddlepaddle merged 1 commit into
mainfrom
add-cmd-f-keyboard-shortcut-to-focus-search-in-tas

Conversation

@saddlepaddle
Copy link
Copy Markdown
Collaborator

@saddlepaddle saddlepaddle commented Jan 31, 2026

Summary

  • Adds FOCUS_TASK_SEARCH hotkey (Cmd+F / Ctrl+Shift+F) that focuses and selects the search input on the Tasks page
  • Pressing Escape while focused clears the search query and blurs the input
  • No conflict with FIND_IN_TERMINAL (also meta+f) since the terminal hotkey is gated by enabled: isFocused and the two views are on separate routes

Test plan

  • Navigate to Tasks page → press Cmd+F → search input focuses with text selected
  • Press Escape → search clears and input blurs
  • Navigate to a Workspace → press Cmd+F → terminal search opens (existing behavior preserved)

Summary by CodeRabbit

  • New Features
    • Added keyboard shortcut (Cmd+F/Ctrl+F) to quickly focus the task search input
    • Press Escape to clear search and exit the search field

✏️ Tip: You can customize this high-level summary in your review settings.

Add FOCUS_TASK_SEARCH hotkey (meta+f) that focuses and selects the
search input on the Tasks page. Escape clears the query and blurs
the input. No conflict with FIND_IN_TERMINAL since the two views
are on separate routes.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 31, 2026

📝 Walkthrough

Walkthrough

A global hotkey binding (meta+f) was added to focus and select the task search input field. The feature is implemented by registering a new hotkey definition in the shared hotkeys configuration and attaching programmatic focus control to the search input component with an Escape key handler to clear the query.

Changes

Cohort / File(s) Summary
Hotkey Registration
apps/desktop/src/shared/hotkeys.ts
Added new hotkey definition FOCUS_TASK_SEARCH mapped to meta+f with workspace category and description.
TasksTopBar Component
apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/components/TasksView/components/TasksTopBar/TasksTopBar.tsx
Added useRef and useAppHotkey imports, created searchInputRef to control input focus, attached global hotkey binding that focuses/selects the search input, and added onKeyDown handler to clear query and blur on Escape key.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A whispered meta-f in the air
Task search blooms with focused care
One hop away, the queries wait
Swift as carrots on a plate!
Escape to clear, then search once more 🔍

🚥 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 and concisely describes the main change: adding a Cmd+F keyboard shortcut to focus the search input in the Tasks view, which aligns with the actual code modifications.
Description check ✅ Passed The description provides a clear summary of changes, explains the hotkey functionality, addresses potential conflicts, and includes a comprehensive test plan, though it does not follow the provided template structure with standard sections like 'Type of Change' or 'Related Issues'.

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

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-cmd-f-keyboard-shortcut-to-focus-search-in-tas

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.

@saddlepaddle saddlepaddle merged commit e3cdbe5 into main Jan 31, 2026
5 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

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

Thank you for your contribution! 🎉

@Kitenite Kitenite deleted the add-cmd-f-keyboard-shortcut-to-focus-search-in-tas branch February 1, 2026 03:16
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