Skip to content
Edith

Docs

Command reference

ed color clear

Forgets the whole picked-colour history.

Usage:

Output
ed color clear [--json] [--yes]

Options:

Name Type / values Default What it does
--json flag off Emits one JSON document on stdout.
--yes flag off Applies the clear. Without it, prints the swatch ids.

There are no positional arguments. Without --yes, clear is a preview that leaves the defaults bytes unchanged.

--json shape:

JSON
{  "removed": 3}

removed is how many swatches were in the history before it was emptied.

Examples:

Output
ed color cleared color clear --yes --json
Output
$ ed color clear --yescleared 3 colours

Behaviour: this removes the colorPickerHistory key from Edith's settings. A running Edith does not reload the swatch history at once, so it can still show the colours you cleared: the Recent Colors grid reloads the next time the settings pane appears, and the eyedropper's menu only once the picker is restarted or another colour is sampled. The post is fire and forget, so the command needs nothing running and exits 0 either way. Clearing an already empty history is reported as cleared 0 colours rather than as an error. There is no per-swatch removal; the history is cleared whole or not at all.

The settings pane has no button for this. Its Recent Colors grid and ed color copy use the same shared copy operation, but neither can forget one, so ed color clear is the only way to empty the history from any surface.

Where to go next