Skip to content

Sidebar: no Copy File or Duplicate File option #75

Description

@KrisPowers

The file explorer context menu has no way to copy or duplicate a file. The only way to move a file is to drag it (which itself is broken per issue #74). There is no "Duplicate" shortcut, no "Copy here", and no way to paste a file from the clipboard.

This is a missing basic file management operation.

What needs to happen

At minimum, add a "Duplicate" option to the file context menu that creates a copy of the file in the same directory with a name like filename copy.ext or filename (1).ext.

Optionally, support Cut / Copy / Paste for files:

  • Right-click > Copy puts the file path on an internal clipboard
  • Right-click a folder > Paste copies the file into that folder
  • Keyboard: Ctrl+C / Ctrl+X / Ctrl+V when a file is selected in the tree

Files likely involved

  • app/frontend/src/fullscreen/FileExplorer.tsx -- context menu and clipboard state
  • app/frontend/src/fullscreen/ContextMenu.tsx -- menu entries
  • cpp/src/fileops.cpp -- file copy operation on disk

Acceptance criteria

  • Right-clicking a file shows a "Duplicate" option
  • Duplicate creates the copy in the same directory and opens the rename input so the user can immediately give it a proper name
  • The tree refreshes to show the new file

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions