Comments (5)
Null was chosen over ''
so that you could determine if the user has typed something, then removed it (resulting in '' ) or if it was the first "search".
I agree that undefined
is better.
from inquirer-autocomplete-prompt.
Even passing undefined
is better so that I could use default parameters for searchString. Now I have to do the old school searchString = searchString || ''
in order to set it to ''
.
from inquirer-autocomplete-prompt.
Open a PR if you like, will close #52 as well
from inquirer-autocomplete-prompt.
Is it possible to pass in an array/list as default instead of initial null/undefined. Maybe it could be picked up from default
or choices
key from inquirer.
from inquirer-autocomplete-prompt.
The idea of using undefined is that we could use function default args to set whatever default you want.
from inquirer-autocomplete-prompt.
Related Issues (20)
- make bottomContent configurable HOT 1
- 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
- Supporting the name, value, short schema 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
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.