English | 日本語
The directory diff (diff_directories) lets
you copy, move or delete one item at a time. Sync does the rest in one step:
it makes the other side match the active side. You see the whole plan before
anything is written.
Tab switches
sides, and the active side’s header is highlighted.Press s and pick a mode:
| Mode | New and changed files | Items only on the other side |
|---|---|---|
| Update | copied over | kept |
| Mirror | copied over | deleted |
The viewer now shows the plan. Identical items are hidden, and the centre column shows what will happen to each remaining item:
| Mark | Meaning |
|---|---|
→ / ← |
copied in that direction |
× |
deleted on the side the arrow points to |
· |
left alone |
A directory that exists on both sides has no mark of its own. Expand it to see what happens inside.
s again. A
summary lists how many items will be copied, replaced, sent back and
deleted. Choose Sync to run it.Esc leaves the plan without doing anything, and the comparison stays open.
Press Space on an item to move it to its next action:
While the plan is open, Enter still opens the file diff and edit_file still
opens your merge tool (its key depends on your keymap preset — see
Keymap Presets). After a merge, the comparison updates and that item’s action
is worked out again. Your other changes are kept.
Tab reverses the plan’s direction and resets your changes.
Space to copy it anyway. The summary counts
how many were left alone this way.!, with the slash only on the folder’s side), and sync always
leaves it alone.ssh://, s3://, a removable or network drive on Windows), they are
permanent, and the summary says so. DELETE_TO_TRASH = False in
config.py makes them all permanent.Esc in the
progress dialog), it stops wherever it is, but anything it has removed was
removed only after every copy had finished. What was done stays done.copy_files and delete_files, with its progress
dialog. It works across local folders, ssh://, s3:// and mounted
shares.| Key | Action |
|---|---|
s |
Open a plan, or run the open one (dir_diff.sync) |
Space |
Change the focused item’s action (dir_diff.cycle_sync_action) |
d |
Show or hide the items that are the same on both sides (dir_diff.toggle_identical) |
Esc |
Leave the plan |
All of them can be rebound in KEY_BINDINGS. See
Key Bindings.