files-community / files-community/Files

Bug: problem when copying or moving files sorted by any classification other than by name

Open
#18,522 5 comments 0 reactions 0 assignees View on GitHub
area - file operations
Dominant language
C#
Stars
45.4k
Forks
2.9k
Avg merge
19h 7m
Merged PRs (30d)
62

Description

### Description

I noticed this problem when you select files sorted by any other classification besides by name, If you select a sequence of these files and try to copy or move them using Ctrl + C and Ctrl + V or Ctrl + X and Ctrl + V, it will always copy or move them as if your sequence was with the files sorted by name, not the sequence you made

and it doesn't happen if you use the keys, but rather the drag and drop of the mouse

### Steps To Reproduce

1. leave files sorted by anything but name
2. select a sequence of files with the Ctrl key
3. try copying them or moving them to another folder

### Files Version

4.1.1.0

### Windows Version

10.0.26200.8524

### User ID

cff6e2c7-0ffc-44ef-88e6-f3232168f584

### Log File

[debug.log](https://github.com/user-attachments/files/28324475/debug.log)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with files sorted by a classification other than name, using Ctrl-select followed by copy/paste or move/paste; compare that with drag and drop. Start by tracing the file-selection and clipboard or move handling entry points, using the attached debug.log for clues. Done means the selected files retain their displayed selection order for copy and move operations regardless of sorting.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.