Comments (4)
That's fixes for questions. Not sure I see the point for choices, so that is out for now.
from inquirer.js.
Apologies for reviving an extraordinarily old issue, but I wanted to check whether multi-line choices ever became possible. I'd like my user to be able to view pretty-printed JSON objects and choose between them, but the fact that they're ~5 lines each means that the interface is bugging out pretty badly. I've tried upping pageSize to no avail. I'm sure I could find a workaround for my specific case, but I thought I'd ask.
from inquirer.js.
@mchlltt Multiline support in choices should work fine https://github.com/SBoudrias/Inquirer.js/blob/master/examples/long-list.js#L11
But there's a good chance having bigger than ~2 lines choices can trip the UI badly. The pagination is pretty dumb ATM. You can see this PR trying to making it better #492
from inquirer.js.
@SBoudrias - Ah, thanks :) I'll keep an eye on that PR in case I'm able to help out.
from inquirer.js.
Related Issues (20)
- How do I force a re-render from inside the context of createPrompt? HOT 2
- Combine multiple state updates into a single operation to reduce renders HOT 2
- State system should not force a render when the new value is the same as the previous value
- A declaration file cannoty be imported without 'import type'. Did you mean to import an implementation file instead? HOT 4
- I would like to know why in my code, when it reaches the `choicesFiles` step, I need to press Enter first in order to use the keyboard's spacebar and arrow keys for selection. If I don't press Enter, the spacebar and arrow keys do not work. HOT 1
- inquirer.prompt(...).then is not a function HOT 2
- Add validate function to checkbox HOT 1
- inquirer/select and readline conflict HOT 1
- Vulnerable dependencies ( indirect security issues ?? ) HOT 1
- Prompt does not play well with ANSI hyperlinks HOT 4
- @inquirer/input: cursor not showing the updated position when using left/right arrows HOT 5
- update to a maintained `through`? HOT 4
- Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 6
- Latest release broke package HOT 1
- Wrong version released as latest HOT 5
- Pseudo-prompt to always perform a task HOT 5
- useEffect differs from react behaviour for synchronous state changes HOT 3
- Prompts version of Checkbox no longer supports `loop` HOT 8
- Ctrl-c-ing out of checkbox prompt leaves terminal in broken state HOT 7
- Contextual help feature HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inquirer.js.