Skip to content

feat(files): reveal workspace items in the host file manager - #1379

Open
Muhammed Eren Dursun (muhammederendursun) wants to merge 2 commits into
JetBrains:mainfrom
muhammederendursun:feature/reveal-in-file-manager-620
Open

Muhammed Eren Dursun (muhammederendursun) wants to merge 2 commits into
JetBrains:mainfrom
muhammederendursun:feature/reveal-in-file-manager-620

Conversation

@muhammederendursun

@muhammederendursun Muhammed Eren Dursun (muhammederendursun) commented Nov 14, 2026 •

Copy link
Copy Markdown

Problem

To locate a generated file in the system file manager, users currently have to copy its path and navigate there manually. A reveal action on the file or tab gives users a direct way to find it, for example before dragging it into another application.

Approach

Add a reveal action to the Files tree, file and diff tab context menus, and the Active tab group in the command palette. The tab context menu and palette share the same tabActions entry. The client names the action for the connected host. On macOS and Windows the system file manager selects the item. On Linux it opens the containing folder.

The action sends a worktree-relative path through workspace.reveal. The host checks that the item exists and resolves inside the worktree. Omitting the path opens the workspace root. The client enables item reveal on connected hosts that support protocol v122.

Changes

  • Reveal files and folders from the Files tree. A compacted folder row targets its deepest folder.
  • Reveal the worktree file associated with a file or diff tab. The right-clicked tab can be inactive or a preview.
  • Search for >reveal in the command palette to reveal the active file or diff tab. This keeps the current tab and its preview state.
  • Open either menu with Shift+F10 or the Context Menu key. Escape returns focus to the menu trigger.
  • Show an error if the item has disappeared or the file manager cannot launch.

Screenshots

The macOS screenshots below show the same README.md context menu before and after the change, in the Files tree and on the file tab. They use the earlier feature build (cb4c326a) and its baseline at 1440 × 900.

Files tree

The new action appears below Copy relative path with a folder icon, matching the surrounding menu items.

Files tree menu with Reveal in Finder

Files tree before this change

Files tree menu before the reveal action

File tab

Reveal in Finder aligns with the text of the other tab actions.

File tab menu with Reveal in Finder under the path copy actions

File tab before this change

File tab menu before the reveal action

Active tab command palette

Open the command palette and type >reveal. The Active tab result reveals the active file or diff tab. This screenshot shows the Linux host label.

Reveal in file manager under Active tab

Related issues

Closes #620

The Files menu and Windows launcher come from #959, #1177, and #1158, which are already in main.

Testing

  • bun run lint and bun run typecheck passed.
  • bun run test passed all 25 tasks in WSL using Git 2.56.1.
  • bun run check:deps, bun run check:boundaries, bun run check:seams, bun run check:spec-surface, bun run check:i18n, and bun run check:compiler.
  • 28 focused Chromium tests covered reveal, copy paths, keyboard menus, and focus restoration after incorporating feat(web): run the workbench and the sidebar trees from the keyboard #1370.
  • 20 focused Chromium tests passed after the shared tabActions update, including the Active tab command and its preview behavior.
  • bun run e2e on 837d2da in WSL with Chromium and WebKit. 904 passed, 1 skipped.
  • Manually verified the reveal action in Windows File Explorer and macOS Finder on earlier feature builds.
  • Also verified the Linux reveal action in Nautilus under WSL.

Checklist

  • Fast gates pass: bun run lint, bun run typecheck, bun run test
  • E2E suite passes for app-affecting changes (bun run e2e, or bun run e2e:full when touching agent behavior)
  • Before/after screenshots are included for frontend changes, or marked not applicable
  • Relevant SPEC.md / top-level specs updated to reflect any boundary, contract, or behavior change
  • I have read the Contributing guide and agree to the Code of Conduct

@jetbrains-air jetbrains-air Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — ready to merge.

@jetbrains-air jetbrains-air Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — ready to merge.

@jetbrains-air jetbrains-air Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — ready to merge.

This branch has not been deployed

No deployments
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.

Reveal a file in the file manager from the Files tree

1 participant