8000 feat(file-tree): add 'Copy path' option to file tree item menu by ImamWahyudiz · Pull Request #1530 · overleaf/overleaf · GitHub
[go: up one dir, main page]

Skip to content

feat(file-tree): add 'Copy path' option to file tree item menu - #1530

Open
ImamWahyudiz wants to merge 1 commit into
overleaf:mainfrom
ImamWahyudiz:feat/file-tree-copy-path
Open

ImamWahyudiz wants to merge 1 commit into
overleaf:mainfrom
ImamWahyudiz:feat/file-tree-copy-path

Conversation

@ImamWahyudiz
Copy link
Copy Markdown

Description

Adds a Copy path option to the file tree item context/action menu when a single entity (file, document, or folder) is selected, copying its project-relative path (e.g. images/figure.png or main.tex) to the clipboard.

  • Computes selectedEntityPath in FileTreeActionableProvider via the existing pathInFolder utility.
  • Renders a Copy path (copy_path) menu item in FileTreeItemMenuItems that writes selectedEntityPath to navigator.clipboard.
  • Adds a component test in context-menu.spec.tsx.

Related issues / Pull Requests

Fixes #1514

Contributor Agreement

@ImamWahyudiz
ImamWahyudiz commented Nov 10, 2026 •
Copy link
Copy Markdown
Author
image

adding copy path option
feel free to say whether this feature required or not

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.

The option of copying a path or a relative path option is not available when clicking on the uploaded files

1 participant

0