English | 日本語
XeFM’s core file operations — copy, move, duplicate, and rename — all share the same conflict handling and progress display. This document covers how each one works and the options you can configure.
The keys for these operations depend on your keymap preset — see Keymap Presets, or press F1 in XeFM for the keys you have.
Copy the selected file(s) to the other pane.
toggle_select_down to toggle one,
toggle_select_files for all files).copy_files).Directories are copied recursively. If a name already exists at the destination, XeFM asks how to resolve it (see Conflict resolution).
XeFM confirms before copying by default. To skip the confirmation:
CONFIRM_COPY = False # default: True
Move the selected file(s) to the other pane.
move_files).(In AFX style, move_files and create_directory share one key: with nothing
selected, it prompts for a new directory name instead — see
Create File Operations.)
XeFM confirms before moving by default:
CONFIRM_MOVE = False # default: True
Move works the same whether the source and destination are on the same disk, on two different disks, or on cloud storage such as Amazon S3.
Because the original is removed only after a verified copy, a failed move across disks or storage never deletes your source files. Directory moves work too — all contained files are moved recursively.
For S3 you need AWS credentials configured and the boto3 package installed.
Cross-storage transfers depend on your network speed, so test with small files
first when setting up a new storage backend.
File → Copy to… (copy_files_to) and File → Move to…
(move_files_to) copy or move the selected file(s) somewhere other than the
other pane, without navigating there first.
A relative path is taken from the current pane: . is the current
directory, .. its parent, sub a directory inside it. ~ and absolute paths
work as in Jump to Path, as do s3://… / ssh://… locations. The destination
must be an existing directory; anything else is refused in the prompt. From
there it is an ordinary copy or move — the same confirmation, conflict handling
and progress — and copying into the current directory itself duplicates, as
Copy to Other Pane does.
The menu bar’s File menu and the item context menu carry these as Copy to… and Move to….
Make an in-place copy of a file or directory — XeFM’s equivalent of Finder’s Duplicate (⌘D). The copy lands in the same directory as the original, automatically renamed so it never collides.
Select one or more items (or just place the cursor on one), then choose Duplicate from either:
When nothing is explicitly selected, the entry under the cursor is duplicated; afterward the cursor lands on the new copy.
AFX style ships it with no keyboard shortcut (Orthodox has one — see
Keymap Presets). To add one,
bind the duplicate_files action in your config, e.g.:
KEY_BINDINGS['duplicate_files'] = ['Shift-D']
Copy to Other Pane (copy_files) also duplicates: when both panes show the same
directory, copying auto-renames exactly like Duplicate instead of erroring.
(Move still refuses a same-directory target.)
Duplicates use the same ` (N)` scheme as “Keep both” conflict resolution:
| Original | Duplicate | Next duplicate |
|---|---|---|
report.pdf |
report (1).pdf |
report (2).pdf |
photos (folder) |
photos (1) |
photos (2) |
.bashrc (dotfile) |
.bashrc (1) |
.bashrc (2) |
archive.tar.gz |
archive.tar (1).gz |
archive.tar (2).gz |
The suffix is inserted before the last extension for files and appended for directories and extension-less names.
Duplicating shows a confirmation dialog by default. Turn it off for instant, Finder-like behavior:
CONFIRM_DUPLICATE = False # default: True
Directories are duplicated recursively, so the confirmation is a useful guard against duplicating a large tree by accident.
File → Move to Trash… (delete_files, also on Delete) moves the
selection, or the item under the cursor, to the Trash, called the Recycle
Bin on Windows. You can restore it from Finder, Explorer or your desktop’s file
manager. File → Delete Permanently… (delete_permanently, also on
Shift-Delete) deletes for good, without the Trash. Each asks first. In AFX
style their keys act only on marked items, as do that preset’s keys for
copying, moving and creating an archive; with nothing marked, the delete keys
do nothing. The menu commands still take the item under the cursor. See
Deleting to the Trash.
When a copy or move would land on a file or folder that already exists, XeFM stops and asks what to do instead of silently overwriting. The dialog names the item and shows both sides side by side — size and modification time of the Source and of the Existing one — with the newer and the larger side marked, so you can decide without leaving the dialog:
File exists (2 of 5)
report.pdf already exists in the destination.
│ │ Size │ Modified │
│ Source │ 120.6 KB · larger │ 2026-10-13 09:43 · newer │
│ Existing │ 2.0 KB │ 2026-10-12 09:43 │
[ ] Apply to all remaining
Overwrite Overwrite older [ Skip ] Keep both Compare Cancel
| Key | Choice | What happens |
|---|---|---|
o |
Overwrite | Replace the existing item. A folder is merged: its files are copied into the existing folder, replacing same-named ones. |
u |
Overwrite older | Replace the existing item only if it is older than the source; otherwise skip it. For a folder, the merge decides file by file. |
s |
Skip | Leave the existing item alone and go on (the default — Enter). |
k |
Keep both | Copy under a free name instead: report (1).pdf. |
d or = |
Compare | Open the two files in the diff viewer. Close it (Esc) to come back to the same dialog. Shown only when both sides are files. |
c / Esc |
Cancel | Stop the whole operation. |
a or Space toggles Apply to all remaining. Checked, your choice answers
every later conflict of the same operation without asking again. With
Overwrite older that is “overwrite all older”: each remaining file is
still judged on its own dates.
Copying or moving a folder onto a folder of the same name merges them: the
dialog asks once for the folder, not for each file inside, and the choice acts on
the files in it — Overwrite replaces every file that exists in both,
Overwrite older replaces only those older at the destination, Skip leaves
the whole folder, Keep both copies it as name (1).
So instead of the two folders’ own size and date, which say nothing about their contents, the dialog counts what the merge would meet:
Folder exists
photos already exists in the destination. The folders are merged.
• 12 files in both: 8 older at the destination, 4 not
• 40 files only in the source
“8 older at the destination” is exactly what Overwrite older would replace. The count stops after 10,000 files, so a huge or remote folder doesn’t hold the question back; the dialog then says the rest were not checked.
The questions above are asked when the operation starts. If something with the same name turns up at the destination after that — another program wrote it, or a background job ran there in the meantime — XeFM notices when it gets to that file, and asks then, with the same dialog. Nothing is merged or skipped without your say:
report (1).pdf that has appeared in the meantime makes it
report (2).pdf. Duplicate works the same way.XeFM runs one writing operation at a time (see Background Jobs), so between checking a name and writing it, no other XeFM operation can get in. A program outside XeFM still can, as with any file manager.
The existing item counts as older when its modification time is more than two seconds before the source’s. Times closer than that count as equal and the file is skipped, because FAT/exFAT drives (USB sticks, SD cards) store times in 2-second steps and would otherwise look “older” on every copy. If either time can’t be read, the file is skipped, so nothing is overwritten on a guess.
When a move merges a folder under Overwrite older, files whose existing copy
was newer stay in the source folder, and the source folder is not removed. The
log names each one (Kept '…': the destination's copy is not older).
Conflict resolution works across every storage type XeFM supports (local ↔ S3,
SFTP, and so on). It always asks, even with CONFIRM_COPY / CONFIRM_MOVE
turned off; those settings control only the “Copy N item(s) to …?” question
before the operation starts. Extracting an archive into a folder that already
exists asks its own question first (CONFIRM_EXTRACT_ARCHIVE).
Copy and move operations show detailed, real-time progress — especially useful for large files or directories with many files. The UI stays responsive while the transfer runs in the background.
The progress dialog shows one overall bar and, below it, the files currently in flight:
Copy…
[███████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]
12 / 100 items — 350.2M / 2.1G
photos/IMG_2041.jpg 8.1M / 24.5M
photos/IMG_2042.jpg 12.9M / 31.0M
notes.txt
video/trip.mov 310.5M / 1.4G
While an operation’s progress dialog is open, the rest of XeFM waits for it. To keep working instead, send the operation to the background with the dialog’s Run in background button.
Press Cancel (or ESC), then Cancel operation, to cancel. It asks first, and Enter or ESC again keeps the operation running. Cancellation is checked between files and, for large files, at each chunk — so it may take a moment to stop at the next checkpoint. Partial files are removed cleanly, leaving nothing half-written behind.
This applies to remote transfers too: a slow upload to S3 or an SFTP server stops when you cancel it, rather than running on to completion. A cancelled S3 upload leaves no object behind and no partially uploaded pieces to be billed for; a cancelled download leaves no file on disk. An SFTP transfer stops within about half a second of the keypress.
Progress works across disks and storage types, so a move to an external drive gets the same per-file byte progress that a local copy, a cross-storage transfer, or an S3-to-S3 transfer does. No configuration is required — it is always on and adapts automatically to file size, file count, and terminal width.
create_directory; in AFX
style the same key as move_files, with nothing selected), type a name, and
press Enter.create_file), type a filename, and
press Enter. The
new empty file opens immediately in your configured text editor.Both check that the current directory is writable and refuse to overwrite an existing name.
An operation never sends the cursor back to the top of the pane. After a delete, a copy, a move, a duplicate or a rename, the cursor is still on the file it was on — even though rows above it have come or gone, and even on a pane sorted by size or date, or sorted in reverse.
When the file under the cursor is the one that disappeared — you deleted it,
moved it out, or deleted a whole block of selected files — the cursor drops to
the entry that took its place, so repeating delete_files deletes down through
a directory. At the end of the listing it moves up to the new last entry
instead, and in a directory you have just emptied it returns to the top.
A rename keeps the cursor on the renamed file under its new name, whether you renamed one file or ran a batch rename over many, and a duplicate leaves the cursor on the new copy. The same holds for changes XeFM did not make itself: a file appearing or vanishing in a directory another program is writing to moves the rows, not your cursor.
The one place the cursor deliberately does return to the top is a filter
change (View → Filter…, filter), which clears the selection and starts the narrowed listing fresh.