@inquirer/checkbox
Advanced tools
+1
-2
@@ -1,2 +0,2 @@ | ||
| import { Separator, type Theme, type Keybinding } from '@inquirer/core'; | ||
| import { Separator, type Theme } from '@inquirer/core'; | ||
| import type { PartialDeep } from '@inquirer/type'; | ||
@@ -20,3 +20,2 @@ type CheckboxTheme = { | ||
| }; | ||
| keybindings: ReadonlyArray<Keybinding>; | ||
| }; | ||
@@ -23,0 +22,0 @@ type CheckboxShortcuts = { |
+0
-1
@@ -22,3 +22,2 @@ import { createPrompt, useState, useKeypress, usePrefix, usePagination, useMemo, makeTheme, isUpKey, isDownKey, isSpaceKey, isNumberKey, isEnterKey, ValidationError, Separator, } from '@inquirer/core'; | ||
| i18n: { disabledError: 'This option is disabled and cannot be toggled.' }, | ||
| keybindings: [], | ||
| }; | ||
@@ -25,0 +24,0 @@ function isSelectable(item) { |
+6
-6
| { | ||
| "name": "@inquirer/checkbox", | ||
| "version": "5.1.5", | ||
| "version": "5.2.0", | ||
| "description": "Inquirer checkbox prompt", | ||
@@ -70,6 +70,6 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@inquirer/ansi": "^2.0.5", | ||
| "@inquirer/core": "^11.1.10", | ||
| "@inquirer/figures": "^2.0.5", | ||
| "@inquirer/type": "^4.0.5" | ||
| "@inquirer/ansi": "^2.0.6", | ||
| "@inquirer/core": "^11.2.0", | ||
| "@inquirer/figures": "^2.0.6", | ||
| "@inquirer/type": "^4.0.6" | ||
| }, | ||
@@ -92,3 +92,3 @@ "devDependencies": { | ||
| "types": "./dist/index.d.ts", | ||
| "gitHead": "113558c67f0d781d774cf3cf4db48fbcd8738b13" | ||
| "gitHead": "5ca6d1101d5d3f8fb066cd5b389bccfdafbbe0c0" | ||
| } |
+7
-0
@@ -119,2 +119,8 @@ # `@inquirer/checkbox` | ||
| ## Keybindings | ||
| Set `INQUIRER_KEYBINDINGS=vim`, `INQUIRER_KEYBINDINGS=emacs`, or `INQUIRER_KEYBINDINGS=vim,emacs` to enable alternative navigation keybindings globally. | ||
| You can override the environment setting per prompt with `theme.keybindings`. | ||
| ## Shortcuts | ||
@@ -163,2 +169,3 @@ | ||
| }; | ||
| keybindings: readonly ('emacs' | 'vim')[]; | ||
| }; | ||
@@ -165,0 +172,0 @@ ``` |
20549
1.04%196
3.7%266
-0.75%Updated
Updated
Updated
Updated