hermes - 💡(How to fix) Fix feat(desktop): add right-click context menu to open folder in file tree [1 pull requests]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Feature Description

Add a right-click context menu to the file tree in the right sidebar of the Hermes desktop app. When right-clicking a folder, users should see an option to open the folder in the system file manager.

Motivation

Currently, users can only open a folder in the system file manager via the header button. It would be more intuitive and efficient to also support right-clicking any folder in the file tree to open it directly in the system file manager.

This aligns with desktop app conventions (VS Code, Finder, Explorer all support this).

Proposed Solution

When a user right-clicks on a folder row in the file tree:

  1. Show a context menu with options including:
    • Open in File Manager (opens the folder in native OS file manager via shell.openPath)
    • Optionally other future actions (e.g., copy path, open in terminal)

Implementation Details

  • Add a new IPC channel hermes:openFolder in electron/main.cjs that calls shell.openPath(folderPath)
  • Expose it in electron/preload.cjs and update global.d.ts
  • In tree.tsx, wrap the row content with a ContextMenuTrigger from the existing radix-ui context menu
  • Show the menu only on folder rows (not files)
  • Use the existing ContextMenu* components from @/components/ui/context-menu.tsx

Alternatives Considered

  • Using the existing openExternal IPC - but it's designed for URLs. A dedicated openFolder IPC is cleaner.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING