brsh

Files on disk ​

This page helps you keep your file safe. It tells you how Brsh saves, what happens when another program changes your file, and how to report a problem.

How saving works ​

Brsh saves a .brsh file a short time after each change. You do not need to press save.

A new file has no place on your disk yet. Press ⌘S and choose a place. Brsh then saves it by itself.

Example: you move a button. About a second later, Brsh saves the file.

What to do when another program changes your file ​

Sometimes another program changes your open file while you have unsaved edits. A bar then shows the file name and says it changed on disk. Brsh asks before it saves over that change.

  1. Read the bar.
  2. Click Keep mine to keep your version. Your next save replaces the file on disk.
  3. Or click Reload to load the file from disk. Press Undo to bring your edits back.

How to rename a file from its tab ​

  1. Double-click the tab name. Or right-click the tab and choose Rename.
  2. Type the new name.
  3. Press Enter. Press Esc to cancel.

A saved file is renamed on disk, in the same folder. Brsh never replaces another file with the same name.

How to open a recent file ​

Choose File › Open Recent. The start screen lists them too. Both show the last 10 files, newest first.

What opens ​

Brsh opens .brsh files. It also imports .fig files from Figma. A design saved as one .pen or .json file does not open.

To convert one, run npm run convert -- design.pen in the Brsh project. It writes a .brsh file next to it.

If a file does not open, a card says "Could not open" and tells you why. Click Try again or Close.

How to report a problem ​

  1. Choose Help › Report a Problem…
  2. Write what went wrong and what you did before it.
  3. Leave the box for the app log ticked, or clear it.
  4. Click Send report.

The log has errors and canvas events. Brsh removes file paths from it. It does not send your design.

Error reports ​

When something fails, Brsh sends an error report to the developers. It has the error and the canvas events before it. It has no design content. File paths are cut out.

To stop this, right-click the canvas, choose Settings, and turn off Send error reports. It stops at once.

Brsh also writes errors to ~/.brsh/brsh.log on your computer.

Notes ​

  • Images stay inside the .brsh file.
  • Brsh keeps parts of a file that it does not know and writes them back unchanged.