Skip to content

feat: open search results in a new tab with Shift+Enter / Cmd+Click#4

Merged
inkless merged 1 commit into
mainfrom
gz/mdb-17-shift-enter-new-tab
Jun 9, 2026
Merged

feat: open search results in a new tab with Shift+Enter / Cmd+Click#4
inkless merged 1 commit into
mainfrom
gz/mdb-17-shift-enter-new-tab

Conversation

@inkless

@inkless inkless commented Jun 9, 2026

Copy link
Copy Markdown
Owner

What

In the Cmd/Ctrl+K file-search modal, Shift+Enter on the selected result — and Cmd/Ctrl+Click on a result row — now opens the file in a new tab instead of navigating the current one, and leaves the modal open so you can fan out to several files in one pass. Plain Enter / click keep their same-tab behavior.

window.open(path, "_blank") runs synchronously inside the keydown/click handler, so it's a genuine user gesture and won't trip popup blockers. Also adds a ⇧↵ new tab hint to the modal for discoverability.

Test plan

  • pnpm build / pnpm exec tsc --noEmit / pnpm lint clean
  • pnpm test — 78 unit tests pass
  • pnpm test:e2e — 22 e2e pass, including new Shift+Enter and Cmd+Click new-tab tests

🤖 Generated with Claude Code

In the Cmd/Ctrl+K file-search modal, Shift+Enter on the selected result
(and Cmd/Ctrl+Click on a result row) now opens the file in a new tab
instead of navigating the current one, leaving the modal open so you can
fan out to several files. Plain Enter / click keep their same-tab
behavior. Adds a "⇧↵ new tab" hint and Playwright coverage.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@inkless inkless merged commit cc7fb89 into main Jun 9, 2026
4 checks passed
@inkless inkless deleted the gz/mdb-17-shift-enter-new-tab branch June 9, 2026 04:22
@github-actions github-actions Bot mentioned this pull request Jun 9, 2026
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