Add add-to-workspace and try to set_buf if it doesn't exist