bach watch is bach preview with the loop closed. It opens the installer window, then opens it again every time you save bach.toml, or a file the config names: the logo, the license, a text file for the window, a font or picture of [style], the panel picture of [layout]. Nothing is installed or removed.
bach preview:
What happens
- A save is picked up when the file has been still for a moment, so an editor that writes in two steps causes one reload.
- The new window opens first and the old one closes after it, so the window is gone for as short a time as possible.
- A mistake in the config is printed as a sentence, and the window stays as it was. The next save that fixes it reopens the window.
- Files named in the config that don’t exist yet are picked up when you create them. Paths that leave the config’s folder are never watched.
Notes
bach watchruns until you stop it with Ctrl+C. Stopping it leaves the last window open; close it yourself. It has no--jsonresult, so scripts and coding agents should usebach check.- Like preview, it needs Windows.