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 editing is off

Sashmark lets you edit only text it can save without changing other lines. It checks each file on open and update, and turns editing off where it can't.

AI agents and other tools read your files byte for byte. Sashmark makes sure that saving a file never changes a line you did not edit. Each time a file opens, and again each time it changes on disk, Sashmark runs a quick check before you can edit that version. See Editing and saving a file for editing itself.

Parts of a file

Sashmark tries to write every block of the file (a paragraph, a heading, a list item, a code block) back exactly as it is on disk. A block it cannot write back exactly becomes read-only. You can still read it, select it, and copy it. The rest of the file stays editable, and saving never touches the read-only block.

Today these blocks are often read-only:

  • Lists that use * or + bullets. Sashmark writes bullets as - and horizontal rules as ---, the way most AI agents write them.
  • Indented code (code shown by four leading spaces instead of a ``` fence).
  • A part Sashmark could not format, shown in a dashed box under Could not render this part. See Reading a file.

Later updates will shrink this list. Put the cursor in a read-only block and the top bar says, on its left, which block it is and why, for example This list item is read-only: the app can't save it without changing other lines.

The whole file

Editing is off for the whole file when:

  • the file is not valid UTF-8 text (Sashmark also says "This file is not valid UTF-8"), or
  • Sashmark cannot read the file's structure, or cannot match the formatted page to the file's text. The file still shows, read-only.

The top bar then says, on its left, Editing is off for this file: the app can't save it without changing other lines.

The read-only page receives focus after an in-app open. Arrow keys, End, and Cmd+Down on Mac (Ctrl+End on Windows and Linux) move through the page, while typing leaves the file unchanged. The page is not an extra stop in the normal Tab order; immediately after an open, Shift+Tab moves to the selected tab.

A very long file (over 100,000 characters) is not checked, so that opening or updating it never slows Sashmark down. Editing is off for the whole file, and the top bar says Editing is off for this file: it is too large to check before editing. Reading, live updates, and Changes still work. When the file changes on disk and the new version passes the check, the message goes away by itself.

Math

Sashmark shows standard Markdown, which has no math. Text such as $$x^2$$ shows exactly as typed. See Reading a file.

View as Markdown