Skip to content

Add Reveal in Sidebar command#185

Merged
khoi merged 1 commit into
mainfrom
sbertix/reveal-in-wortkree
Mar 29, 2026
Merged

Add Reveal in Sidebar command#185
khoi merged 1 commit into
mainfrom
sbertix/reveal-in-wortkree

Conversation

@sbertix
Copy link
Copy Markdown
Collaborator

@sbertix sbertix commented Mar 28, 2026

Requires #183

Summary

  • Adds a Reveal in Sidebar action (default Cmd+Shift+E) that shows the sidebar if hidden, expands the repository section containing the selected worktree if collapsed, and focuses the worktree row.
  • Registers the shortcut in AppShortcuts (configurable via Settings > Shortcuts).
  • Adds 3 unit tests covering: expand collapsed repo, no-op without selection, and keeping other repos collapsed.

Test plan

  • With the sidebar hidden, press Cmd+Shift+E — sidebar should appear and the selected worktree should be visible.
  • With the sidebar visible but the repo section collapsed, press Cmd+Shift+E — repo section should expand to reveal the worktree.
  • With multiple repos, verify only the selected worktree's repo is expanded; other collapsed repos remain collapsed.
  • Verify the shortcut appears in Settings > Shortcuts under "Sidebar" and can be customized.
  • Run make test — all tests pass.

@sbertix sbertix marked this pull request as draft March 29, 2026 00:00
@sbertix sbertix changed the base branch from main to sbertix/sidebar-ui March 29, 2026 00:03
@sbertix sbertix changed the title Add Reveal in Sidebar feature Add Reveal in Sidebar command Mar 29, 2026
@sbertix sbertix force-pushed the sbertix/reveal-in-wortkree branch from 7a231bf to 6d4e7d4 Compare March 29, 2026 00:49
@sbertix sbertix marked this pull request as ready for review March 29, 2026 00:59
@sbertix sbertix requested a review from khoi March 29, 2026 00:59
@sbertix sbertix force-pushed the sbertix/reveal-in-wortkree branch from 6d4e7d4 to 5e24cc7 Compare March 29, 2026 01:16
Base automatically changed from sbertix/sidebar-ui to main March 29, 2026 09:24
@khoi khoi merged commit ac59c4b into main Mar 29, 2026
@khoi khoi deleted the sbertix/reveal-in-wortkree branch March 29, 2026 09:24
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