Edit › Undo (⌘Z) takes back your last file action, and Edit › Redo (⇧⌘Z) does it again. The menu item names what it will undo, such as Undo Rename to “report.txt”, so you know before you choose it.
There’s one history for all your Cosmil windows, holding your last 100 actions. It’s cleared when you quit. While you’re typing in a text field, such as a name you’re editing, ⌘Z undoes your typing instead.
What you can undo#
| Action | What Undo does |
|---|---|
| Move to Trash | Puts the items back where they were |
| Moving files (cut and paste, Move, drag and drop) | Moves them back |
| Copying files, Duplicate, Compress | Moves the copies to the Trash |
| New File, New Folder, Create Symlink | Removes the new item: deleted if it’s empty, otherwise moved to the Trash |
| New Folder with Selection | Moves the items back out and removes the folder |
| Rename | Changes the name back |
| Tag changes | Puts each file’s tags back |
Undo works on remote locations too. Undoing a move between your Mac and a server, or between two drives, moves the files back as a job you can follow in the Job Manager.
What you can’t undo#
- Delete Permanently, and Delete Immediately… in a remote location.
- A file you replaced with Overwrite Destination File, and a folder you merged into another or replaced (see Copying and Moving).
- Anything done in Finder or another app.
What undo won’t do#
Before it changes anything, Cosmil checks every item against what’s on disk now.
- It never puts an item where something else now has the same name.
- It leaves alone anything that has been moved or replaced since. If a copy has changed since you made it, Cosmil asks before moving it to the Trash.
- It never permanently deletes anything with your data in it. The exception is a server, which has no Trash: there, undoing a copy deletes the copies, but only ones that haven’t changed and whose originals are still there, so you could copy them again. When Cosmil can’t tell, it asks first.
When part of an action can’t be undone, a sheet lists each item and why. You can undo the rest, cancel and try again later, or choose Skip This Action. Skipping drops that action from the history and leaves everything as it is, so you can undo what came before it.
Undoing a copy or move that’s still running#
If you undo a copy or move while it’s still running, Cosmil asks to stop it first. For a move, Stop and Put Back stops it and moves back what’s already been moved. For a copy, Stop and Remove stops it and removes the copies made so far. Cancel lets it keep going.
Cosmil