Bacon config
Bacon configuration file
| Type | object |
|---|---|
| File match |
bacon.toml
**/bacon/prefs.toml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/bacon-config/latest.json |
| Source | https://dystroy.org/bacon/.bacon.schema.json |
Validate with Lintel
npx @lintel/lintel check
A configuration item which may be stored in various places, eg as bacon.toml
along a Cargo.toml file or as prefs.toml in the xdg config directory.
Leaf values are options (and not Default) so that they don't override previously set values when applied to settings.
Properties
Extra arguments appended when a job runs a cargo alias.
Whether to consider that we can have a success when we have test failures
Whether to consider that we can have a success when we have warnings. This is especially useful for "cargo run" jobs
The analyzer interpreting the output of the command, the standard cargo dedicated one if not provided
Whether gitignore rules must be applied
Whether to wait for the computation to finish before to display it on screen
This is true by default. Set it to false if you want the previous computation result to be replaced with the new one as soon as it starts.
The tokens making the command to execute (first one is the executable).
[]
Name of the job to run when no job was requested explicitly.
Whether to apply the default watch list, which is
["src", "tests", "benches", "examples", "build.rs"]
This is true by default. Set it to false if you want
to watch nothing, or only the directories you set in
watch.
Env vars to set for this job execution
{}
Whether to expand environment variables in the command
Deprecated single export configuration; use exports.locations instead.
Deprecated toggle for the legacy locations export; use exports.locations.auto
Export configurations keyed by their name.
Whether to insert extraneous arguments provided by bacon or end users
Eg: --all-features or anything after -- in bacon incantation
Minimum delay to wait before restarting the job after a change is detected.
Whether to display the contextual help line
Whether to hide the scrollbar
A list of glob patterns to ignore.
Patterns starting with ! are negations that force-include
matching paths, overriding other ignore rules (including .gitignore).
[]
Patterns of lines which should be ignored. Patterns of the prefs or bacon.toml can be overridden at the job
Job definitions keyed by their identifier
Custom keybindings layered on top of the defaults
A kill command. If not provided, SIGKILL is used.
Whether to listen for actions on a unix socket (if on unix)
Whether we need to capture stdout too (stderr is always captured)
How to handle changes: either immediately kill the current job then restart it, or wait for the current job to finish before restarting it.
The optional action to run when it's not a success
The optional action to run when there's no
error, warning or test failures
(depending on whether allow_warnings is true or false)
Could be made a vec in the future but that would involve explaining subtleties like the fact that those actions stop after the first one ending the mission or doing a refresh
Whether to display the mission output in reverse order.
Whether to display how many files triggered the current run.
Whether to show the error code of commands.
This is normally automatic, depending on warnings and errors found by the analyzers, but
some commands may want to force it on (eg cargo run to show the error code of the binary
being run even when there are rustc warnings).
Collection of optional color overrides for the Bacon UI.
34 nested properties
Background color of the change badge
- default value: 6
Foreground color of the change badge
- default value: 235
Background color of the command-error badge
- default value: 9
Foreground color of the command-error badge
- default value: 235
Background color of the "computing..." indicator
- default value: 204
Foreground color of the "computing..." indicator
- default value: 235
Background color of the dismissed badge
- default value: 6
Foreground color of the dismissed badge
- default value: 235
Background color of the errors badge
- default value: 9
Foreground color of the errors badge
- default value: 235
Foreground color of search matches
- default value: 208
Background color of the selected search match
- default value: 208
Background color of the job label badge
- default value: 204
Foreground color of the job label badge
- default value: 235
Foreground color used for key shortcuts in the UI
- default value: 204
Background color used for menus
- default value: 235
Border color used for menus
- default value: 234
Background color of individual menu items
- default value: 235
Foreground color of menu items
- default value: 250
Background color of the selected menu item
- default value: 239
Foreground color of the selected menu item
- default value: 255
Background color of the project name badge
- default value: 240
Foreground color of the project name badge
- default value: 255
Foreground color of the '/' search prefix
- default value: 208
Foreground color of the search summary
- default value: 208
Background color of the status line
- default value: 239
Foreground color of the status line
- default value: 252
Foreground color for key shortcuts displayed in the status line
- default value: 204
Background color of the failing-tests badge
- default value: 208
Foreground color of the failing-tests badge
- default value: 235
Background color of the passing-tests badge
- default value: 2
Foreground color of the passing-tests badge
- default value: 254
Background color of the warnings badge
- default value: 11
Foreground color of the warnings badge
- default value: 235
Sound configuration.
2 nested properties
Base volume, acting as a multiplier for the volume of specific sounds.
Whether sound notifications should be played.
Whether to show diagnostics summarized instead of full
Deprecated toggle that enables a built-in set of Vim-style keybindings. Use keybindings instead
A list of directories that will be watched if the job
is run on a package.
src, examples, tests, and benches are implicitly included
unless you set default_watch to false.
An optional working directory for the job command, which would override the package directory.
Whether to wrap long lines
Definitions
A stateless operator building a report from a list of command output lines.
Implementation routing will probably change at some point
Collection of optional color overrides for the Bacon UI.
Background color of the change badge
- default value: 6
Foreground color of the change badge
- default value: 235
Background color of the command-error badge
- default value: 9
Foreground color of the command-error badge
- default value: 235
Background color of the "computing..." indicator
- default value: 204
Foreground color of the "computing..." indicator
- default value: 235
Background color of the dismissed badge
- default value: 6
Foreground color of the dismissed badge
- default value: 235
Background color of the errors badge
- default value: 9
Foreground color of the errors badge
- default value: 235
Foreground color of search matches
- default value: 208
Background color of the selected search match
- default value: 208
Background color of the job label badge
- default value: 204
Foreground color of the job label badge
- default value: 235
Foreground color used for key shortcuts in the UI
- default value: 204
Background color used for menus
- default value: 235
Border color used for menus
- default value: 234
Background color of individual menu items
- default value: 235
Foreground color of menu items
- default value: 250
Background color of the selected menu item
- default value: 239
Foreground color of the selected menu item
- default value: 255
Background color of the project name badge
- default value: 240
Foreground color of the project name badge
- default value: 255
Foreground color of the '/' search prefix
- default value: 208
Foreground color of the search summary
- default value: 208
Background color of the status line
- default value: 239
Foreground color of the status line
- default value: 252
Foreground color for key shortcuts displayed in the status line
- default value: 204
Background color of the failing-tests badge
- default value: 208
Foreground color of the failing-tests badge
- default value: 235
Background color of the passing-tests badge
- default value: 2
Foreground color of the passing-tests badge
- default value: 254
Background color of the warnings badge
- default value: 11
Foreground color of the warnings badge
- default value: 235
Background color of the change badge
- default value: 6
Foreground color of the change badge
- default value: 235
Background color of the command-error badge
- default value: 9
Foreground color of the command-error badge
- default value: 235
Background color of the "computing..." indicator
- default value: 204
Foreground color of the "computing..." indicator
- default value: 235
Background color of the dismissed badge
- default value: 6
Foreground color of the dismissed badge
- default value: 235
Background color of the errors badge
- default value: 9
Foreground color of the errors badge
- default value: 235
Foreground color of search matches
- default value: 208
Background color of the selected search match
- default value: 208
Background color of the job label badge
- default value: 204
Foreground color of the job label badge
- default value: 235
Foreground color used for key shortcuts in the UI
- default value: 204
Background color used for menus
- default value: 235
Border color used for menus
- default value: 234
Background color of individual menu items
- default value: 235
Foreground color of menu items
- default value: 250
Background color of the selected menu item
- default value: 239
Foreground color of the selected menu item
- default value: 255
Background color of the project name badge
- default value: 240
Foreground color of the project name badge
- default value: 255
Foreground color of the '/' search prefix
- default value: 208
Foreground color of the search summary
- default value: 208
Background color of the status line
- default value: 239
Foreground color of the status line
- default value: 252
Foreground color for key shortcuts displayed in the status line
- default value: 204
Background color of the failing-tests badge
- default value: 208
Foreground color of the failing-tests badge
- default value: 235
Background color of the passing-tests badge
- default value: 2
Foreground color of the passing-tests badge
- default value: 254
Background color of the warnings badge
- default value: 11
Foreground color of the warnings badge
- default value: 235
A generic configuration for all exports, whatever the exporter.
Whether the export should run automatically after each mission.
Exporter backend that should produce the output.
Optional format string used by exporters that write line-based data.
Destination path where the exporter writes its output.
Export backend.
One of the possible jobs that bacon can run
Whether to consider that we can have a success when we have test failures
Whether to consider that we can have a success when we have warnings. This is especially useful for "cargo run" jobs
The analyzer interpreting the output of the command, the standard cargo dedicated one if not provided
Whether gitignore rules must be applied
Whether to wait for the computation to finish before to display it on screen
This is true by default. Set it to false if you want the previous computation result to be replaced with the new one as soon as it starts.
The tokens making the command to execute (first one is the executable).
[]
Whether to apply the default watch list, which is
["src", "tests", "benches", "examples", "build.rs"]
This is true by default. Set it to false if you want
to watch nothing, or only the directories you set in
watch.
Env vars to set for this job execution
{}
Whether to expand environment variables in the command
Whether to insert extraneous arguments provided by bacon or end users
Eg: --all-features or anything after -- in bacon incantation
Minimum delay to wait before restarting the job after a change is detected.
Whether to hide the scrollbar
A list of glob patterns to ignore.
Patterns starting with ! are negations that force-include
matching paths, overriding other ignore rules (including .gitignore).
[]
Patterns of lines which should be ignored. Patterns of the prefs or bacon.toml can be overridden at the job
A kill command. If not provided, SIGKILL is used.
Whether we need to capture stdout too (stderr is always captured)
How to handle changes: either immediately kill the current job then restart it, or wait for the current job to finish before restarting it.
The optional action to run when it's not a success
The optional action to run when there's no
error, warning or test failures
(depending on whether allow_warnings is true or false)
Could be made a vec in the future but that would involve explaining subtleties like the fact that those actions stop after the first one ending the mission or doing a refresh
Whether to display how many files triggered the current run.
Whether to show the error code of commands.
This is normally automatic, depending on warnings and errors found by the analyzers, but
some commands may want to force it on (eg cargo run to show the error code of the binary
being run even when there are rustc warnings).
Collection of optional color overrides for the Bacon UI.
34 nested properties
Background color of the change badge
- default value: 6
Foreground color of the change badge
- default value: 235
Background color of the command-error badge
- default value: 9
Foreground color of the command-error badge
- default value: 235
Background color of the "computing..." indicator
- default value: 204
Foreground color of the "computing..." indicator
- default value: 235
Background color of the dismissed badge
- default value: 6
Foreground color of the dismissed badge
- default value: 235
Background color of the errors badge
- default value: 9
Foreground color of the errors badge
- default value: 235
Foreground color of search matches
- default value: 208
Background color of the selected search match
- default value: 208
Background color of the job label badge
- default value: 204
Foreground color of the job label badge
- default value: 235
Foreground color used for key shortcuts in the UI
- default value: 204
Background color used for menus
- default value: 235
Border color used for menus
- default value: 234
Background color of individual menu items
- default value: 235
Foreground color of menu items
- default value: 250
Background color of the selected menu item
- default value: 239
Foreground color of the selected menu item
- default value: 255
Background color of the project name badge
- default value: 240
Foreground color of the project name badge
- default value: 255
Foreground color of the '/' search prefix
- default value: 208
Foreground color of the search summary
- default value: 208
Background color of the status line
- default value: 239
Foreground color of the status line
- default value: 252
Foreground color for key shortcuts displayed in the status line
- default value: 204
Background color of the failing-tests badge
- default value: 208
Foreground color of the failing-tests badge
- default value: 235
Background color of the passing-tests badge
- default value: 2
Foreground color of the passing-tests badge
- default value: 254
Background color of the warnings badge
- default value: 11
Foreground color of the warnings badge
- default value: 235
Sound configuration.
2 nested properties
Base volume, acting as a multiplier for the volume of specific sounds.
Whether sound notifications should be played.
A list of directories that will be watched if the job
is run on a package.
src, examples, tests, and benches are implicitly included
unless you set default_watch to false.
An optional working directory for the job command, which would override the package directory.
Mapping from key combinations to actions.
Strategy to apply when changes are detected while a job is running.
Sound configuration.
Base volume, acting as a multiplier for the volume of specific sounds.
Whether sound notifications should be played.