summaryrefslogtreecommitdiff
path: root/internal/app/keybindings.md
blob: 03f820103ab05d5e9f8a0d6925be1e3f9b41e641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# KEYBINDINGS

**Normal mode**:

- `h`,`l`: coarse decrease/increase the current slider by 5%
- `H`,`L`: fine decrease/increase the current slider by 1
- `j`,`k`: select the slider below/above
- `<Tab>`,`<S-Tab>`: move to the next/previous tab
- `f`,`b`: copy the color as an ANSI escape code for the foreground/background
- `x`,`r`,`s`,`c`: copy the color as a hex/rgb/hsl/cmyk
- `?`: expand/shrink the help menu
- `i`,`<cmd>`: enter Insert mode
- `q`/`<C-c>`: quit the application

**Insert mode**:

Manually type a color. Pressing <Esc> will cancel/leave insert mode.
Anything in the following formats will be used as a color input when
pressing enter:

- Hex values: `#rrggbb`
- RGB values: `rgb( r, g, b)`
- CMYK values: `cmyk(c, m, y, k)`
- HSL values: `hsl(h, s, l)`