new write command, includes edit + watch + preview commands