summaryrefslogtreecommitdiff
path: root/internal/app/keybindings.md
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin.chausse@goto.com>2025-03-26 10:52:14 -0400
committerBenjamin Chausse <benjamin.chausse@goto.com>2025-03-26 10:52:14 -0400
commit04213e975c46b0d6bfecc8695801b85c3f3dd0ab (patch)
tree73d39c5f614c83baad5eb6ad8669a27750770e2a /internal/app/keybindings.md
parentcd9338e0d6cf582f9ea8028661ac3729e408f3bf (diff)
charmbracelet/glamour for help + man page generate
Diffstat (limited to 'internal/app/keybindings.md')
-rw-r--r--internal/app/keybindings.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/internal/app/keybindings.md b/internal/app/keybindings.md
new file mode 100644
index 0000000..03f8201
--- /dev/null
+++ b/internal/app/keybindings.md
@@ -0,0 +1,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)`