Skip to content

Fix sidebar selection when jumping with Cmd-number#135

Merged
johannesjo merged 1 commit into
johannesjo:mainfrom
brooksc:pr-fix-selection
May 26, 2026
Merged

Fix sidebar selection when jumping with Cmd-number#135
johannesjo merged 1 commit into
johannesjo:mainfrom
brooksc:pr-fix-selection

Conversation

@brooksc

@brooksc brooksc commented May 24, 2026

Copy link
Copy Markdown
Collaborator

Problem

When a task is selected with the mouse, the sidebar keeps focus and renders the selection outline from sidebarFocusedTaskId. Using Cmd-1 through Cmd-9 changed the active task, but left sidebarFocusedTaskId pointing at the last mouse-selected row, so the outline stayed on the wrong task.

Fix

Update jumpToTask() so Cmd-number jumps also synchronize the sidebar focused task when the sidebar currently owns focus. The change clears project focus and moves the sidebar outline to the jumped task.

Verification

  • npm run check
  • npm test
  • Confirmed the PR branch contains one commit on top of latest johannesjo/main, touching only src/store/navigation.ts and src/store/navigation.test.ts.

@johannesjo

Copy link
Copy Markdown
Owner

Thank you very much! <3

@johannesjo johannesjo merged commit a2f6a53 into johannesjo:main May 26, 2026
2 checks passed
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.

2 participants