Sashmark / Help

Sashmark is in development. Nothing has been released yet, and there is no public build. These pages describe the development build. See the roadmap for what is still planned.

When a file changes on disk

How Sashmark notices that an open file was changed, replaced, moved, or deleted by another app or an AI agent, and how the tab updates.

AI agents often rewrite a file while you have it open. Sashmark keeps watch on every file that has an open tab.

What Sashmark notices

  • A change to the file. Another app or an agent writes new text into it.
  • A replaced file. Many editors and agents save by writing a new copy and swapping it in. Sashmark treats that the same as a change.
  • A moved or deleted file. The file is gone from where you opened it. If it comes back to the same place, Sashmark notices that too.
  • A rename that changes only capital letters (Doe.md to doe.md) on a drive that ignores case, as most Mac and Windows drives do, is not noticed: the tab keeps the old spelling, and a save says the file now leads to another file. Copy your edits with Copy as Markdown, close the tab, and open the file again.

Sashmark notices a change within about a second of the save. On a network share, or when another computer writes into a folder that syncs to this one, your computer may not announce the change; Sashmark then notices it within about 2 seconds, because it re-checks open files every 2 seconds.

Some saves change nothing: the app writes the same text that was already there. Sashmark ignores those.

Sashmark only watches the contents of files you have open. When you close a tab, Sashmark stops watching that file.

What you see

  • The file changed. The tab shows the new version in place, with no animation and no new tab. The notice bar says "File changed on disk." for 3 seconds.
  • The file was moved or deleted. The tab keeps showing the last version it had, and the notice bar says "File moved or deleted. Showing the last version." The notice stays while the file is gone.
  • The file comes back. If a file with the same name appears in the same place again, the tab loads it and the notice clears. A tab you opened from the sidebar is the exception: once its folder is renamed, moved or replaced, the tab no longer reloads; open the file again from its new place.
  • A tab you are not looking at. It updates quietly. If its file is gone, you see the notice when you switch to that tab.

If Sashmark cannot read the new version for another reason (for example, it no longer has permission), the tab keeps the last version and the notice bar says "Could not open" with the reason.

Screen readers announce each notice once, politely, without moving focus.

Your place is kept

When the tab you are reading updates, the view stays on the same text. Sashmark remembers the paragraph, heading or list item at the top of the window and puts it back in the same spot, even when the change added or removed text above it.

  • The text you were reading was changed or removed. The view goes to the nearest heading above where you were. If there is no heading above it, the view goes to the top of the file.
  • You were at the very top of the file. You stay at the top.
  • A tab you are not looking at. A background tab also keeps your place in the text when you return to it, when that place can still be found. This applies to tabs without unsaved edits, outside Changes.
  • Images above your place. As they finish loading, Sashmark keeps your text where it was for a couple of seconds, until you scroll yourself.
  • Very long files (over about 100,000 characters). Sashmark does not track your place by text; the view stays at the same scroll position.

Your cursor and selection are kept the same way, in the tab on screen, even when you are at the very top of the file:

  • The text around your cursor is unchanged. The cursor (or selection) comes back to the same spot in that text, and a selection keeps its direction.
  • That text was changed or removed. The cursor goes to the start of the text now at the top of the window. A selection whose start or end was changed or removed is dropped; the cursor stays where it was if its own text is unchanged.
  • Focus. If you were typing in the page, you can keep typing after the update. If you were somewhere else, such as the tab row, you stay there.

A tab with unsaved edits never reloads over your edits; see When an agent changes a file you are editing.

Good to know

  • Checking for changes only reads your files. It never changes them.
  • Other files in the same folder can change all they like: only the contents of open files matter here. The sidebar's file list still updates when files in an open folder are added, removed or renamed.
  • On a Mac where the system service that reports file changes is silent, Sashmark notices and switches to a backup method automatically.

View as Markdown