Code Monkey home page Code Monkey logo

Comments (4)

SBoudrias avatar SBoudrias commented on May 22, 2024

That's fixes for questions. Not sure I see the point for choices, so that is out for now.

from inquirer.js.

mchlltt avatar mchlltt commented on May 22, 2024

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.

SBoudrias avatar SBoudrias commented on May 22, 2024

@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.

mchlltt avatar mchlltt commented on May 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.