The top level of the configuration file may contain the following keys:
This specified the default timeout for modules where the timeout is unspecified. Note that block modules ignore this - the default timeout for a block module is infinite. A value of 0 here will be an infinite timeout. If not specified, this defaults to 500ms.
In many cases Kitsch needs to determine if a particular file exists, or a file with a particular extension exists. In order to speed this process up, Kitsch reads the contents of a folder only once and caches this information internally. If the disk we are reading from is a network disk, or contains an extremely large number of files, however, we could spend a long time reading in file information from that disk. In order to make sure the prompt is rendered in a timely fashion, we limit the maximum time we spend reading the folder contents.
scanTimeout is the time, in milliseconds, to scan the folder. The default is 100ms.
For a concrete example, the
scanTimeout. If it doesn't find any ".js" files before the timeout is reached, it will assume there aren't any.
The name of another configuration file to extend (the parent configuration file). We load colors, prompt, and projects from the parent file first, then merge in any custom colors or project configuration from the current file. See Configuration Merging.
A map of custom colors. Custom colors must start with a "$". See Styles.
An array of project types. See Projects.
The module to render as the prompt. Typically this would be a block module with multiple child modules.