---
title: "Working with files in microManager"
description: "Use the file tree, tabs, editor, safe previews and search across files. Learn keyboard controls, save conflicts, editing in diffs and file-size limits."
url: "https://micromanager.win/docs/workspace-files"
updated: "2026-11-11"
---

# Working with files

Files in the right panel lists your workspace. Open a file to read, edit or preview it in a center tab, and use the row menu or toolbar to manage files.

Updated 11 November 2026

## How do I browse and manage files?

Select **Files** beside Changes. Folders load when expanded; **Show more** loads another page of the names that were read. A folder with more than 100,000 entries shows the first 100,000 and says so. A folder on a disk that reports no file index is read again each time, so a recent listing is not kept when that index cannot tell a replacement apart. Ignored files are dimmed and links identify their targets. The tree refreshes when the workspace changes, including edits made while the workspace opens or a new Linux folder is being picked up. Changes inside ignored folders may need the **Refresh** button. An open file inside one refreshes after an edit from outside the app, without pressing Refresh, however many such tabs are open. Its watch ends when the tab closes.

A slow checkout safety check releases waiting work after one second and keeps existing watches open. Nothing new is watched until the check succeeds; then missing watches are restored and changes made while waiting are refreshed. A failed check, or one still pending after thirty seconds, stops that watcher. Changes and Run from root retry failed watchers automatically, starting after one second and backing off up to thirty seconds. Once watching resumes, they refresh the missed changes, including open files and artifacts. Switching workspaces or closing stops retries and discards late answers. A changed checkout stays refused. If the initial Git metadata check times out, the next successful check refreshes missed changes and restores missing target-branch watches too. Target-ref parent folders are checked as well, so a ref created and removed between checks is noticed.

Select a row to use its toolbar, or open its context menu. You can open, create a file or folder, rename in place, duplicate a file, delete, copy the full or relative path, open in an installed editor, or add the file to the chat draft. **Add to chat** inserts an **@-mention** when the name forms one safe path token; otherwise it attaches the checked file by path, or explains why it cannot be attached. Names cannot replace an existing entry. Paths cannot leave the workspace or access git’s internal files.

Deletion asks first. When the system offers a trash, the file goes there. Without a trash, the dialog explains that deletion is permanent. A failed trash operation never silently falls back to permanent deletion.

| Key          | In the tree                                |
| ------------ | ------------------------------------------ |
| Up / Down    | Previous / next visible entry              |
| Right / Left | Expand or enter / collapse or go to parent |
| Home / End   | First / last entry                         |
| Type a name  | Jump to a matching entry                   |
| Enter        | Open the entry                             |
| F2           | Rename                                     |
| Delete       | Ask to delete                              |
| Shift+F10    | Open the selected entry’s menu             |

An archived workspace has no worktree to browse; restore it first. A preview that is still reading a file, such as a video, is closed while the workspace is being archived. The archive waits up to two seconds for that read to finish, then removes the folder. Until the archive finishes, the preview shows the file as missing. After the archive finishes, or if it does not, restoring the workspace in the same folder previews its files again. A preview that was already opening when the archive started stays unavailable. A save that is already writing finishes before the folder is removed. A save that has not started is refused, because the workspace is being archived. A failed load has **Try again**.

## How do I open and save a file?

Use **Go to file** with **⌘P** (macOS) or **Ctrl+P** (Windows/Linux), or **Open file** on a Changes row. File tabs live beside chat tabs and remember their order for each workspace. Drag a file tab to reorder it, or use its menu’s move commands.

The editor has line numbers, **Find**, **Go to line** and **Save**. Save also responds to **⌘S** or **Ctrl+S**. Text stays responsive through the 5 MiB editing limit; language highlighting is skipped for very large files or very long lines. A binary, truncated or read-only file explains why saving is unavailable. A file whose text cannot be written back as the same bytes opens read-only, and says that saving would change bytes you did not touch.

Renaming does not replace a file or folder that appears at the new name while the rename is starting, including on a volume where a hard link cannot be made. Where hard links are unavailable, a file up to 1 GiB is copied to a new name without replacing anything there. Both copies are checked before the old name is removed. Larger files need to be moved outside the app on that volume. The copy is independent of other hard links and may not keep extra file attributes. If the old name cannot be removed, the new name is removed only while it still names the intended file, and the rename fails. When the new name cannot be removed either, the error says the file is at both paths. A change of spelling, such as `notes.txt` to `Notes.txt`, still renames the file, including on a volume that reports no file index, where the real path is compared so a different file is not replaced. Opening and saving still work on that volume. Creating a file in folders that are not there yet checks each folder before making it, and removes the ones it made if a check fails, so a folder swapped for a link is not written through. A folder whose file index is zero is left in place, because that index proves nothing about which folder it is. A file or folder created in that moment is removed too, while it is still the one just made. On a disk that reports no file index it is left in place, and the error says an entry may have been created where the folder now points. If a folder is replaced by a link while a file is opening, the app reports the file missing and does not show anything from outside the workspace. A save, a new file, a rename or a delete that finds its folder changed is refused. When the file changes on disk, an unedited buffer updates automatically, including a file open inside a folder git ignores. A buffer with unsaved changes instead shows **Reload** and **Overwrite**. Reload discards your unsaved text in favor of the latest file; Overwrite saves your text after reading the latest version. If the file changes again during that save, or the open file is replaced by another file that happens to hold the same text, including a new file at the same path on Windows, the version check asks you to resolve the conflict again. Two saves of the same file from the same version cannot both land: one is kept and the other is told the file changed. A save writes into the file itself, so a second name of that file, a link to it, and its extra attributes stay. If the save fails while the new text is being written, the file is put back to the text it had. If the app is quit in that moment, the file can hold the new beginning with the old end still after it, rather than being left empty. A byte-order character typed into a file that had no byte order mark is kept. In a file with mixed line endings, a line you did not change keeps its ending, including when the file ends with a blank line, and a line you changed takes the ending most of the file uses. When a large change is too big to compare line by line, a line whose text still matches the line in that position keeps its ending. A bare carriage return is a line ending too, and a line you did not change keeps it. A deleted file keeps your buffer visible. When a file can no longer be read and the tab still has unsaved text, that text stays on screen and cannot be edited until you close the tab, and you can copy it.

A second name of the worktree’s `.git` file is read-only, even in a subfolder; saves check its device and file index again on the open handle. Ordinary hard links stay editable. The editor says: “This file has other names (hard links). Saving changes all of them.”

A move removes the old name only while it still names the intended file. If another editor replaces either name, both are left in place and the error names both paths. Rollback removes the new name only while its identity still matches. Disks without file indexes use the recorded kind, size and timestamps.

The workspace root must be a real directory, not a symbolic link or Windows junction. Its canonical path must match the registered path after resolving parent-folder links. A replaced root stops listing, reads, previews, saves, file changes, searches and editor handoffs; the tree explains that the folder was replaced. Linked parent folders remain supported.

Duplicate reads from the validated open file and writes a new name exclusively, up to 256 MiB. Replacing the source name with another file, a link or a FIFO cannot redirect or block the copy.

Names are read without losing their bytes. A name that is not UTF-8 is listed with “This name has bytes that are not text” and cannot be opened, renamed or deleted here. Its unusable identifier is distinct from any real path, including a valid filename containing the replacement character. Changes uses the same check on Git’s filename bytes: a non-text name is listed with that reason, with no open, discard or comment actions. A rename with a non-text name on either side is unavailable too. Valid lookalikes remain separate and act only on their own paths. Search leaves non-text names out and reports an incomplete index. Directory reads use batches of 1,024 names and keep the existing 100,000-name cap and pagination cache.

On Linux the workspace root is watched even when Git cannot list its files. A failed or incomplete listing keeps the 30-second fallback refresh running until every listed folder can be watched. When a watched folder disappears or reappears, including the worktree root itself, its watch and those beneath it are closed and recreated. The fallback refresh stays on while the root is missing or its replacement cannot yet be watched, and until the new listing succeeds. Ignore classifications are cleared on index, HEAD, nested `.gitignore` and shared `.git/info/exclude` changes, so force-adding an ignored file makes later edits refresh the diff. A batch keeps at most 10,000 changed names; a larger burst becomes one full refresh. At most 32 file checks run together.

Filename search keeps at most 200,000 paths and says when the index is incomplete, including in Go to file and `@` suggestions. Ranking retains only the best requested matches and yields every 5 ms. Each filename-search control sends its own stable, validated consumer id (1–200 letters, digits, colons, underscores or hyphens). A newer query cancels only that control’s previous request in the same workspace, so Go to file, chat mentions and review comments can refresh together. Calls without an id supersede only other calls without an id. Content search shares the capped index and reports an incomplete search when it was cut. The legacy `searchFiles` query still returns paths; the app uses `searchFileNames` for paths and status.

Content search skips files over 20 MiB and reports the count. It reuses the candidate-file index between keystrokes; file, diff and workspace events invalidate that index. It checks sizes in bounded batches before searching, so an already indexed file that grew is skipped too. Git receives only checked file paths and uses at most four threads. One 30-second deadline covers listing candidates, finding matches and locating regular-expression spans. Cancelling ends the listing wait; when no other search needs that listing, its process is stopped too. A shared listing stays alive for its remaining consumers, and changing include or exclude patterns stops unused older listings. No directory traversal is repeated for each keystroke. A file can still grow between the size check and Git opening its path; these checks are not a process memory limit.

Renaming a file keeps its unsaved text. Save uses the checked version at the new name; text based on an older version still conflicts. On a disk that reports no file identity, the draft keeps its conflict.

Switching tabs or workspaces keeps drafts and undo history. Closing an unsaved tab, closing the window or quitting asks before discarding. Archiving a workspace, or deleting an archived one, asks the same way when that workspace has unsaved text; cancelling keeps the workspace and the text. A rename that would replace a tab with unsaved text is not done until you save or close that tab. If that text becomes unsaved while the rename is already on its way, the file is put back and the rename is said to be undone. Until that finishes, that tab refuses to save and says the file is being moved back. Saving works again once it finishes, including when the file cannot be put back and stays at its new name. If it cannot be put back, that is said too, and the file stays at its new name. After a file tab closes, the keyboard moves to the next file tab, or to the chat’s message box when none remain. Opening a chat shows the chat and leaves the other file tabs in the strip. Open tabs are remembered across launches, but unsaved text is memory-only and is not crash recovery.

## What can I preview, and what are the limits?

Use **Preview** / **Source** where both views apply. Markdown and structured previews can show your unsaved buffer; HTML shows the saved file until you save again.

- **Markdown:** the app’s Markdown view, with local relative images and a separate block for YAML or TOML frontmatter. Remote images and raw HTML are not rendered.
- **Images:** fit, actual size, zoom, dimensions and a checkerboard for transparent areas. SVGs display as images.
- **Video:** local playback, speed, frame stepping, keyboard controls and timeline thumbnails when supported. Autoplay is off by default and can be remembered. Available codecs depend on the desktop runtime. Audio uses native playback controls.
- **CSV and TSV:** quoted cells and embedded newlines are supported. The preview caps at 200 rows, 50 columns and 10,000 characters per cell, with a note to read Source for the rest.
- **JSON and JSONL:** expand and collapse branches; Show more reveals another 100 children. Scalar colors distinguish strings, numbers, booleans and `null`. Whole URL strings use the app’s checked link action. Invalid JSON gives a parse error. JSON and table previews are limited to 1 MiB.
- **HTML:** an isolated frame, with no scripts, external network, forms or access to the app. A page larger than 5 MiB is not loaded: the panel says it is too large to preview and offers Source and showing the file in its folder. Relative local images, styles and fonts of this workspace can load. A font is the only file answered to the preview’s empty origin, so the preview can use it. A picture or a link that names another workspace, even by its full address, shows nothing and stays on this page. A frame inside that page cannot open another workspace either. Root-relative URLs may not work as they would on a web server.
- **PDF:** a bundled PDF renderer, one page at a time with previous/next and zoom. A PDF larger than 100 MiB is not parsed; the panel says so and offers Open in the default app. A page that would be larger than 8,192 pixels on a side, or 16 million pixels, is shown smaller, and the zoom controls say so. No interactive forms or scripts.
- **Other binary files:** size and type, and a button that shows the file in its folder.

**Open in the default app** is offered for pdf, text, markdown, pictures, sound and video, and hands the validated local file to your operating system. A word processor, spreadsheet, presentation or epub file, like any other file (a program, a script, a shortcut, a web page), gets **Show in Finder**, **Show in File Explorer** or **Show in the file manager** instead: microManager never opens a file of a repository that opening could run. Open in editor uses the editor selected in settings, or an installed fallback.

## How do I search across files?

Press **⌘⇧F** (macOS) or **Ctrl+Shift+F** (Windows/Linux), or choose **Search Files** from the command palette, to search the contents of the workspace. **Match case**, **Whole word** and **Regular expression** narrow the search. The include and exclude boxes take globs such as `src/**` or `*.test.ts`, several separated by commas; a name without a slash matches in any folder.

Results are grouped by file with the number of matching lines. A file with more than 100 matching lines notes how many more there are, and a very broad search says when it stopped early. Select a line to open the file at that line and column. Clearing the box or closing the panel stops the search that box started, including one that has not started looking yet. Stopping a search that has already finished does not stop the next one, so typing again still shows the new results. A newer search replaces an older one: the older one stops and only the newer results are shown.

The search covers tracked files and new files git does not ignore. Ignored files, binary files and git’s own folder are left out. Regular expressions are run by git, never by the app itself, so an expression that takes too long is stopped with the search.

## Can I edit a file in its diff?

In the branch and uncommitted diffs, **Edit file** puts the working file beside the lines it changed. The lines the diff adds stay marked while you type. **Save** (⌘S or Ctrl+S) writes through the same version check as a file tab, and **Finish editing** returns to the diff, which shows your saved change. Turn and commit diffs show history and stay read-only.

## What do file links in a chat do?

When an agent links a file of the workspace, such as `src/app.ts:12` or `src/app.ts#L12`, the link opens the file in a tab at that line. Its menu (right-click, the menu key or Shift+F10) also offers **Open in editor** and **Copy relative path**. A local link outside the workspace offers **Reveal in Finder**, **Reveal in Explorer** or **Reveal in Files**. Clicking reveals its location without reading or opening it. Links into git’s own folder and network paths stay inert.

## How do I keep track of the files I reviewed?

The Changes list has a path filter. **Mark viewed** on a row, or in the diff’s header, dims the file and marks it as reviewed until its contents change again; then it asks for a look again. In a review comment, type `@` and part of a file name to mention a file of the workspace.

Changes shares the snapshot it is already reading when several views ask at once. Rapid edits queue just one refresh, and closing a view cancels its waiting request.

When full file contents are unavailable, diff highlighting is skipped past line 10,000 before allocating padding. The changed lines and their original line numbers still appear without syntax colors.

Diff colors are used only when their token text exactly matches the current line. While new colors load, a changed line stays plain; an earlier line of the same length never replaces its text.

Changes follows the target branch when it moves in another checkout, including root-checkout fetches. It watches only the relevant loose-ref directories and packed refs; cached totals include the target commit.

## Can I mention a file in a review comment?

Type **@** while writing a comment on a diff line. Use the arrow keys and **Enter** to choose a workspace file, or click its name. **Esc** closes the suggestions, including while their lookup is waiting; pressing it again cancels the comment. Previous choices stay visible during typing and lookup. **Enter** and **Tab** complete the choice on screen, or wait if there is none yet; they never submit the comment while its picker is active. The path becomes ordinary comment text. Sending quotes the file and lines being reviewed, with hidden characters removed. Every comment stays inside the same quote as its author, file and lines. A mention does not attach the named file’s contents.

## Where are the plans and reports an agent saved?

Open **Artifacts** beside Checks. It lists files under the workspace’s `.context` folder, newest first. Each tile shows its name, age, size and a short text preview or image thumbnail. Text, logs, Markdown and HTML are displayed as plain text. Click a file, or focus it and press **Enter**, to open a read-only preview; **Esc** closes it. This preview offers no Run or external-app action.

The recent list shows 200 entries per page, with **Earlier** and **Later** controls. Discovery stops at 64 folders, eight nested levels or 500 entries in a folder. Remaining folders appear as expandable tiles. Counts distinguish known omitted entries from folders whose contents are not yet counted. Expanding a folder checks 200 entries at a time, up to 100,000 names; beyond that, the count is a lower bound. Rules in `.gitignore` files inside `.context` exclude build output, including nested rules and exceptions. Links are left out, including links within the workspace. Reserved `todos.json`, `todos.md` and `attachments` entries at the top of `.context`, and `.gitignore` files, stay out of the list.

Tiles read only the first 4 KiB of text, clipped to eight lines and 1,000 characters. Image thumbnails load lazily for PNG, JPEG, GIF and WebP up to 8 MiB and 16 megapixels, checked again when loaded. SVG and other image types show a file mark. Opening a file uses the app’s existing image viewer or plain text reader, whose text limit is 5 MiB. Files update while the tab is open, including inside nested ignored folders on Linux and edits made while their watches are starting. New folders join the list within the same limits; removing a folder or hiding the tab releases its extra watches. Collapsed folders and ignored build output are not watched recursively. **Refresh** reads the list again. Turn off **Show Artifacts tab** in **Settings > General** to hide it.

Artifact watches preserve literal POSIX file names and recheck each discovered folder before watching it. A linked or replaced folder is skipped; watches stay inside `.context`.

Artifact text, thumbnails and clicked previews refuse links in every part of their path. Opening a file rechecks the `.context` ignore rules, so a stale tile cannot open a newly ignored file or a link to another workspace file.

Artifact names and paths lose hidden and direction-control characters when displayed, including in tooltips and accessible names. Their text is isolated from app labels; the exact disk name is kept for opening.

Artifacts and first-message file and command suggestions refuse a replaced workspace or repository folder with “This folder was replaced”. They resolve the saved path and compare it with the recorded checkout before reading project content. An unchanged parent symlink or Windows junction stays usable, including after an update; a changed destination or git identity is refused. The checkout itself cannot be replaced by a link.

File operations use the physical checkout returned by its identity check. Changing a parent link between resolution and that check cannot substitute another folder for listings, edits, artifacts or previews.

Video previews have speed selection, previous/next frame buttons, a seek bar and optional timeline thumbnails (up to eight at 160 × 90), sampled only after Show timeline thumbnails. Sampling accepts videos up to 32 MiB, 24 hours and four megapixels, keeps the 8192-pixel dimension ceiling, and unloads its decoder after five seconds overall while keeping finished thumbnails. The local route checks the current file size on every thumbnail request, including range requests. Focus the player for Space/K to play or pause, arrows to seek five seconds, and comma/period to step. Stepping uses the observed frame interval, or 1/30 second before playback; variable frame rates can make a step approximate. Autoplay is off by default and is remembered from the player or Settings → General → File previews.

Artifacts shows 200 tiles per page with Earlier/Later controls. Each recent listing collects the bounded scan, sorts it once by newest first, then takes the requested page. Closed folders expand inside the tab, so the 64-folder and eight-level recent scan and 500-entry folder cutoff no longer prevent browsing further. Counts distinguish known omitted artifacts, closed folders with uncounted contents, and raw entries not yet checked against ignore rules. Expanded folders use the Files limit of 100,000 names, with 200 entries checked per page; above that limit counts are explicitly lower bounds and the remainder stays unavailable. Ancestor ignore rules are bounded to 128 path segments. Expanded pages keep checked watches on those ancestors, so changes to their ignore rules refresh the page on Linux too. Links are still refused, and paths and ignore rules are checked again for every page and preview.

JSON, JSONL and NDJSON previews keep collapsible branches and highlight strings, numbers, booleans and `null` with the app’s code colors. A complete URL string up to 2,000 characters is clickable only under the shared external-link allowlist: HTTPS or HTTP to localhost, without credentials. Links open only after a click and are checked again by the desktop host; truncated values and other schemes stay text.

Markdown previews separate leading YAML (`---`) or TOML (`+++`) frontmatter into a labelled, scrollable text block above the document. Metadata is never interpreted as HTML, links or configuration. CRLF and a leading byte-order mark are supported; an unclosed marker stays in the document. The existing 1 MiB document limit applies and Source keeps the original file.

A local file link outside the workspace offers Reveal in Finder, Explorer or Files. Only that explicit click reveals its location; the app neither reads nor opens the outside file. The isolated preload requires a user gesture and the host checks the sender, bounded request and local path. UNC/network file hosts, Windows devices and alternate streams, hidden/control characters and .git paths are refused. Home-relative links use the engine’s home directory. Workspace files still open through their existing containment checks.

## Where to go next

- [Workspace files overview](https://micromanager.win/features/workspace-files)
- [Keyboard shortcuts](https://micromanager.win/docs/keyboard-shortcuts)
- [Review diffs](https://micromanager.win/features/diff-review)
