Terkel

Results 68 comments of Terkel

@ChinaBigPan can you please make this a PR?

This is cool – I like the idea a lot. Wonder if this could be a completely new prompt type?

@NickHeiner thank you for the PR! I'll have a look at this over the weekend. Quick note: You can use async/await. It's already used quite a few places

Looks good. I wonder if we should pass some arguments to the handler callback? Like a reference to the prompts so that you can provide some sort of visual feedback?

Right now there's no feedback to the user to indicate a hotkey has been pressed/activated. I wonder if there could be a way to change `selected` mode in the hotkey...

I'll have a look at it this weekend – I didn't get that for some reason

```js { type: 'multiselect', name: 'multicolor', message: 'Pick colors', hint: false, hotkeys: { d: { handle(x, y) { /* handle user action */ }, instruction: 'Save current progress and stop...

The only avalible callback at the moment is https://github.com/terkelg/prompts#optionsoncancel. Maybe you can get creative with the `onState` change callback https://github.com/terkelg/prompts#onstate

Valid points! And I agree we should find a solution to this. I'm currently starting to plan out the next major release of prompts and discussions like these are very...

Thank you @Js-Brecht. I'm very curious about ways to avoid flicker and provide better rendering. I would love to use whatever you learned in the next major release of prompts!