File tree Expand file tree Collapse file tree 1 file changed +9
-21
lines changed
Expand file tree Collapse file tree 1 file changed +9
-21
lines changed Original file line number Diff line number Diff line change 33" @clack/core " : minor
44---
55
6- Adds a new ` updateSettings() ` function to support global customization.
7-
8- ` updateSettings() ` accepts an ` aliases ` object that maps
9- custom keys to an action (one of
10- ` up | down | left | right | space | enter | cancel ` ). In the future, ` updateSettings() `
11- will support more even more customization options.
12-
13- ``` ts
14- import { updateSettings } from " @clack/prompts" ;
15-
16- // Update Clack to recognize custom keys keybindings
17- // before calling any prompts
18- updateSettings ({
19- aliases: {
20- w: " up" ,
21- a: " left" ,
22- s: " down" ,
23- d: " right" ,
24- },
25- });
26- ```
6+ Updates default keybindings to support Vim motion shortcuts and map the ` escape ` key to cancel (` ctrl+c ` ).
7+
8+ | alias | action |
9+ | ------- | -------- |
10+ | ` k ` | up |
11+ | ` l ` | right |
12+ | ` j ` | down |
13+ | ` h ` | left |
14+ | ` esc ` | cancel |
You can’t perform that action at this time.
0 commit comments