Skip to content

Conversation

@cpkt9762
Copy link

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.

Add right-click context menu to file tree items with options to:
- Copy relative path
- Copy absolute path

This improves workflow efficiency when working with AI-assisted coding,
as users frequently need to reference file paths.

Closes anomalyco#11820
Closes anomalyco#11620
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

PR #12448: feat(app): mention file via context menu in file tree
#12448

Why it's related: This PR also adds context menu functionality to the file tree component. While PR #12955 focuses on copying file paths (relative and absolute), PR #12448 appears to add context menu capability for mentioning files. These PRs likely overlap in their implementation of context menu functionality for the file tree, and they may have conflicting changes to the same component (packages/app/src/components/file-tree.tsx).

@cpkt9762 cpkt9762 closed this Feb 10, 2026
@cpkt9762 cpkt9762 deleted the feat/file-tree-context-menu branch February 10, 2026 11:25
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.

[FEATURE]:Right-click on the file list to copy the relative path. [FEATURE]:Add "Copy Path" and "Reveal in File Explorer" to context menu

1 participant