---
title: "Browse and edit workspace files | microManager"
description: "Browse your worktree, open files beside chats, search and edit code, and preview Markdown, images, tables, HTML and PDFs without leaving microManager."
url: "https://micromanager.win/features/workspace-files"
updated: "2026-11-11"
---

# Files beside your chats

Open Files in the right panel to browse the workspace. Each file opens beside your chat tabs, where you can edit text or preview supported formats while the agent works.

Updated 11 November 2026

## How do I find a file?

The **Files** tab shows folders and files in your worktree, including files git ignores. Ignored entries are dimmed. Folders open only when you expand them, and long folders have **Show more** through 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. Modified and added files use the same colors as Changes. Links show where they point.

Press **⌘P** on macOS or **Ctrl+P** on Windows and Linux for **Go to file**, then type part of a file name. A changed file also has an **Open file** button in Changes.

## Can I edit without leaving the chat workspace?

File tabs sit beside chat tabs. Switch between them, reorder them, and close the ones you have finished. The open tabs and their order are remembered for each workspace across launches.

Text files open in a code editor with line numbers, language highlighting, **Find**, and **Go to line**. Press **⌘S** or **Ctrl+S** to save. A file whose text cannot be written back as the same bytes opens read-only. The tab marks unsaved changes, and switching tabs or workspaces keeps your draft and undo history. Closing the tab, window or app asks before discarding unsaved text, and so does archiving the workspace or deleting an archived one. Archiving also stops a preview that is still reading a file, such as a video, waits up to two seconds for that read to finish, and then removes the workspace folder. Restoring that 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 that folder goes, and a save that has not started is refused. A rename does not replace a tab that still has unsaved text. 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 tab closes, the keyboard moves to the next file tab, or to the chat’s message box when it was the last. Drafts are held in memory; they are not recovered after a crash.

A rename does not replace a name that appears at the destination while it starts, including on a volume where a hard link cannot be made. If that empty name is replaced before the rename finishes, it is left alone: the rename goes ahead only while the name still holds an empty file, so nothing with content is replaced, also on a volume that reports no file index and on Linux, where a new file can be given the index of the one just deleted. If the old name cannot be removed, the new name is removed 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 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. A folder replaced by a link while a file is opening is reported missing, and a change whose folder was replaced is refused. The app checks the version before saving, and again at the moment the bytes change, so it does not silently replace work an agent or another editor saved in the meantime. A file replaced by a different file is a conflict even when the text matches, including a new file at the same path on Windows. Two saves from the same version cannot both land. A save keeps the file’s other names and extra attributes. If it fails while the new text is being written, the file keeps the text it had. It retains the file’s encoding and byte order mark. A byte-order character typed into a file that had none is kept. A line you did not change keeps its own line ending, including when the file ends with a blank line; a line you changed takes the one 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. Files larger than 5 MiB show their beginning and cannot be saved in the app.

## What can I preview?

Markdown displays headings, lists, tables and relative local images. Images have fit, actual size, zoom and dimensions. Audio and video use playback controls. CSV and TSV display as bounded tables, JSON as branches you can expand, and PDFs one page at a time with zoom. A PDF page that is too large to draw is shown smaller. HTML displays in an isolated preview with scripts and network disabled. A page larger than 5 MiB is not loaded there. A PDF larger than 100 MiB is not parsed in the app. Images, video and fonts are not limited that way. It can load a font from this workspace. That font is the only file answered to the preview’s empty origin. It cannot show a picture from another workspace, follow a link there, or open another workspace from a frame inside the page.

**Preview** and **Source** switch between views where both apply. For an unknown binary format, the app shows its size and type and offers to show the file in its folder. See [working with files](https://micromanager.win/docs/workspace-files) for preview limits and keyboard controls.

## Can I search every file?

Press **⌘⇧F** or **Ctrl+Shift+F** to search file contents, with case, whole-word and regular expression options and globs to include or leave out. Results are grouped by file, and each line opens the file there. Clearing the search or starting another one stops the earlier search, including one that has not started yet. A search that has already finished is left alone, so the next one still shows its results. Only the latest results are shown. Changed files can also be edited right in their diff, and file links in an agent’s reply open the file at the line it names.

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

- [Working with files](https://micromanager.win/docs/workspace-files)
- [Review diffs](https://micromanager.win/features/diff-review)
- [Workspaces](https://micromanager.win/docs/workspaces)

## Frequently asked questions

### What happens when an agent changes a file I am editing?

A clean buffer reloads automatically, including a file inside a folder git ignores, however many such tabs are open. If you have unsaved text, a banner offers Reload to use the disk version or Overwrite to save yours. If the file can no longer be read, that unsaved text stays on screen until you close the tab, and you can copy it. Closing an unsaved tab, archiving the workspace or quitting asks before discarding it.

### Can a preview run a repository's scripts?

No. HTML previews have scripts, network access, forms and access to the app disabled. Markdown does not render raw HTML or fetch remote images, and SVG files display as images.

### Can I keep using my external editor?

Yes. Open in editor stays available for an installed editor, and a pdf, text file, markdown file, picture, sound or video also offers Open in the default app. A word processor, spreadsheet, presentation or epub file is shown in its folder, like any other file, because opening it could run it.
