Current Behavior
There is no direct way to duplicate a file from the context menu. Users must use Copy (Ctrl+C) followed by Paste (Ctrl+V), which creates a copy but doesn't automatically generate a unique filename.
Reproduction Steps:
- Open Puter in a web browser
- Navigate to any folder and create a test file named
document.txt
- Right-click on
document.txt to open the context menu
- Observe: The menu shows options like Open, Rename, Copy, Delete, etc.
Expected Behavior
When right-clicking on a file, the context menu should include a "Duplicate" option that creates a copy of the file in the same directory with an automatically generated name that avoids conflicts.
Acceptance Criteria:
Steps To Test
Manual Testing:
- Open Puter and create a test file
test.txt with some content
- Right-click on
test.txt and select "Duplicate"
- Verify a new file appears named
test copy.txt
- Verify the content of both files is identical
- Right-click on
test.txt again and select "Duplicate" again
- Verify a new file appears with a unique name like
test (2).txt or test copy 2.txt
Submission
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Guide to submitting pull requests: https://hackmd.io/@timothy1ee/Hky8kV3hlx
Current Behavior
There is no direct way to duplicate a file from the context menu. Users must use Copy (Ctrl+C) followed by Paste (Ctrl+V), which creates a copy but doesn't automatically generate a unique filename.
Reproduction Steps:
document.txtdocument.txtto open the context menuExpected Behavior
When right-clicking on a file, the context menu should include a "Duplicate" option that creates a copy of the file in the same directory with an automatically generated name that avoids conflicts.
Acceptance Criteria:
document copy.txtordocument (1).txt)document (2).txt,document (3).txt)Steps To Test
Manual Testing:
test.txtwith some contenttest.txtand select "Duplicate"test copy.txttest.txtagain and select "Duplicate" againtest (2).txtortest copy 2.txtSubmission
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Guide to submitting pull requests: https://hackmd.io/@timothy1ee/Hky8kV3hlx