Skip to content

Local history

Ferris IDEA keeps a version of a file each time it changes on disk, independent of Git. When a change goes wrong and is not committed yet, local history brings the file back. Works

  • every save, in the editor or by Save All;
  • changes other programs make to a file, as the file watcher notices them;
  • a file’s deletion, and every restore;
  • a labelled version before and after each refactoring, such as Before Rename helper to calc.

A version is recorded only when the content differs from the last one. Files over 2 MiB are not recorded.

The history lies in the project, in .ferris-idea/history/, not in a cache of the IDE, so it moves with the folder and does not leave your machine unless you copy the folder. Versions are kept for 30 days, and the newest version of every file is always kept; a file keeps at most 1,000 versions. Ferris IDEA’s .ferris-idea/.gitignore keeps the history out of Git.

  1. Open the file, or select it in the Project tool window.
  2. Choose File › Local History › Show History. The tool window’s and the tab’s context menus have Local History › Show History too, and Search Everywhere finds it as an action.
  3. The view Local History: cart.py opens over the editor. The list on the left has one row per version: Change · 2026-12-04 13:56, a label, Revert or Deleted.
  4. Choose a row. The left side shows the file before that change, the right side the current text, unsaved changes included. Previous Difference and Next Difference (⇧F7, F7) step through the changes.
  5. Type to filter the list by the text of the versions. Esc closes the view.
  • Revert puts the left side back into the editor as one undo step, so ⌘Z undoes the revert. Revert takes the whole version, not single changes; copy a part by hand if you need only that.
  • Create Patch copies a unified patch from the left side to the current text to the clipboard: Patch copied to the clipboard.

Local history covers one file at a time. It has no history of a folder or the project, no history of a selection, no list of recent changes across files, and you cannot add a label of your own. A file without versions says No local history for this file yet.

For history that others share, commit with Git: Version control.

An agent lists versions and reads an old one without a right; restoring one needs write, previews first, and records the current state before it, so the restore can be undone.

  • local_historychangesLocal history of a workspace file, independent of Git: records the file's current state, then lists its revisions newest first (id, time in ms, size, label, deleted).
  • restore_local_revisionchangesdry run by defaultwriteRestore a workspace file to a local-history revision.