- 8093f3c: Adds
Error
support to thevalidate
function - e5ba09a: Fixes a cursor display bug in terminals that do not support the "hidden" escape sequence. See Issue #127.
- 8cba8e3: Fixes a rendering bug with cursor positions for
TextPrompt
-
a83d2f8: Adds a new
updateSettings()
function to support new global keybindings.updateSettings()
accepts analiases
object that maps custom keys to an action (up | down | left | right | space | enter | cancel
).import { updateSettings } from "@clack/core"; // Support custom keybindings updateSettings({ aliases: { w: "up", a: "left", s: "down", d: "right", }, });
Warning
In order to enforce consistent, user-friendly defaults across the ecosystem, updateSettings
does not support disabling Clack's default keybindings.
-
801246b: Adds a new
signal
option to support programmatic prompt cancellation with an abort controller. -
a83d2f8: Updates default keybindings to support Vim motion shortcuts and map the
escape
key to cancel (ctrl+c
).alias action k
up l
right j
down h
left esc
cancel
- 51e12bc: Improves types for events and interaction states.
- 4845f4f: Fixes a bug which kept the terminal cursor hidden after a prompt is cancelled
- d7b2fb9: Adds missing
LICENSE
file. Since thepackage.json
file has always included"license": "MIT"
, please consider this a licensing clarification rather than a licensing change.
- a04e418: fix(@clack/core): keyboard input not working after await in spinner
- 4f6fcf5: feat(@clack/core): allow tab completion for placeholders
- cd79076: fix: restore raw mode on unblock
- c96eda5: Enable hard line-wrapping behavior for long words without spaces
- 58a1df1: Fix line duplication bug by automatically wrapping prompts to
process.stdout.columns
- 8a4a12f: Add
GroupMultiSelect
prompt
- 8a4a12f: add
groupMultiselect
prompt
- ec812b6: fix
readline
hang on Windows
- d74dd05: Adds a
selectKey
prompt type - 54c1bc3: Breaking Change
multiselect
has renamedinitialValue
toinitialValues
- 1251132: Multiselect: return
Value[]
instead ofOption[]
. - 8994382: Add a password prompt to
@clack/prompts
-
d96071c: Don't mutate
initialValue
inmultiselect
, fix parameter type forvalidate()
.Credits to @banjo for the bug report and initial PR!
-
6d9e675: Add support for neovim cursor motion (
hjkl
)Thanks @esau-morais for the assist!
- 7fb5375: Adds a new
defaultValue
option to the text prompt, removes automatic usage of the placeholder value.
- de1314e: Support
required
option for multi-select
- ca77da1: Fix multiselect initial value logic
- 8aed606: Fix
MaxListenersExceededWarning
by detachingstdin
listeners on close
- a99c458: Support
initialValue
option for text prompt
- Allow isCancel to type guard any unknown value
- 7dcad8f: Allow placeholder to be passed to TextPrompt
- 2242f13: Fix multiselect returning undefined
- b1341d6: Improved placeholder handling
- 4be7dbf: Ensure raw mode is unset on submit
- b480679: Preserve value if validation fails
- 7015ec9: Create new prompt: multi-select
- 9d371c3: Fix rendering bug when using y/n to confirm
- 441d5b7: fix select return undefined
- d20ef2a: Update keywords, URLs
- fe13c2f: fix cursor missing after submit
- a0cb382: Add
main
entrypoint
- Fix node@16 issue (cannot read "createInterface" of undefined)
- a4b5e13: Bug fixes, exposes
block
utility
- Fix cursor bug
- Fix error with character check
- 491f9e0: update readme
- 7372d5c: Fix bug with line deletion
- 5605d28: Do not bundle dependencies (take II)
- 2ee67cb: don't bundle deps
- 306598e: Initial publish, still WIP