[PR #12955] feat(app): add context menu to file tree for copying file paths #14448

Closed
opened 2026-02-16 18:19:14 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12955

State: closed
Merged: No


Summary

Add right-click context menu to file tree items with options to:

  • Copy Relative Path - Copies the file/folder path relative to project root
  • Copy Absolute Path - Copies the full absolute path

Motivation

This improves workflow efficiency when working with AI-assisted coding, as users frequently need to reference file paths to add them to context or specify target locations.

Changes

  • Modified packages/app/src/components/file-tree.tsx to wrap file tree items with ContextMenu component
  • Added i18n translations for 10 languages: English, Chinese (Simplified & Traditional), Japanese, Korean, German, French, Spanish, Arabic, Russian

Related Issues

Closes #11820
Closes #11620

Screenshots

The context menu appears when right-clicking on any file or directory in the file tree sidebar.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12955 **State:** closed **Merged:** No --- ## Summary Add right-click context menu to file tree items with options to: - **Copy Relative Path** - Copies the file/folder path relative to project root - **Copy Absolute Path** - Copies the full absolute path ## Motivation This improves workflow efficiency when working with AI-assisted coding, as users frequently need to reference file paths to add them to context or specify target locations. ## Changes - Modified `packages/app/src/components/file-tree.tsx` to wrap file tree items with `ContextMenu` component - Added i18n translations for 10 languages: English, Chinese (Simplified & Traditional), Japanese, Korean, German, French, Spanish, Arabic, Russian ## Related Issues Closes #11820 Closes #11620 ## Screenshots The context menu appears when right-clicking on any file or directory in the file tree sidebar.
yindo added the pull-request label 2026-02-16 18:19:14 -05:00
yindo closed this issue 2026-02-16 18:19:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14448