feat(desktop): add reveal-in-Finder button to file pane header

Merged
KK
3mo ago
+20-1

Summary

  • Adds a folder-icon button to the v2 file pane header that reveals the current file in Finder via the existing electronTrpc.external.openInFinder mutation (shell.showItemInFolder).
  • Sits between Copy path and Open in editor, matching the sibling buttons' styling and tooltip pattern.

Test plan

  • Open a file in the v2 workspace, click the new folder icon in the pane header, and confirm Finder opens with the file highlighted.
  • Confirm tooltip reads "Reveal in Finder".

Open in Stage

Summary by cubic

Add a “Reveal in Finder” button to the v2 file pane header that opens the current file in Finder via electronTrpc.external.openInFinder.

The button sits between Copy path and Open in editor, matches existing styles, and shows the tooltip “Reveal in Finder.”

Summary by CodeRabbit

  • New Features
    • Added a “Reveal in Finder” action to the file pane header.
    • Users can open the current file’s location directly in Finder.