Comments (1)
This should work, tested it now. What are you doing?
const choicesFull = [
{
name: 'Apple',
value: 'apple-value',
short: 'apple-short',
},
];
inquirer
.prompt([
{
type: 'autocomplete',
name: 'fruit',
message: 'What is your favorite fruit?',
searchText: 'We are searching the internet for you!',
emptyText: 'Nothing found!',
default: 'Banana',
source: async () => choicesFull,
pageSize: 4,
},
])
from inquirer-autocomplete-prompt.
Related Issues (20)
- Is it possible to multiple-select? HOT 1
- Typescript support? HOT 4
- Would it be possible to add a "default" option? Would you be open to a PR? HOT 2
- `rxjs` is required but not listed in `dependencies`, which causes Yarn@2 to fail to load the package
- Pagination HOT 1
- Better support for default value HOT 1
- [email protected] fails to install with [email protected] HOT 1
- TypeError: this.line.substring is not a function HOT 2
- Update rxjs to the same version as the latest inquirer
- Release notes for v2 HOT 1
- Support inquirer v9 HOT 1
- Support ESM
- Does not work with inquirer.createPromptModule HOT 3
- Disable Case Sensitive HOT 1
- Idea: `emptyText` could be a function for reactivity HOT 1
- Handling errors HOT 3
- bug: Result of previous search can override current results HOT 3
- Display cursor when typing HOT 1
- Dynamic Import Not Working in Webpack Project HOT 3
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-autocomplete-prompt.