faressoft / inquirer-checkbox-plus-prompt Goto Github PK
View Code? Open in Web Editor NEWCheckbox with autocomplete and other additions for Inquirer
License: MIT License
Checkbox with autocomplete and other additions for Inquirer
License: MIT License
If I have a checkbox prompt open, type in "foo" then go about my business, everything is fine.
If I then run the prompt later, type in "bar" and try to scroll upwards w/ the up arrow key, I am getting history put into the search.
I'm running bash on MacOS.
Would love to look into this myself, but not sure I'll have the time any day soon.
Hi,
I'd like to write a customized (plug-in) prompt displaying "buttons" distributed horizontally.
The user would be able to change button selection with arrow keys.
The problem is that normalizedUpKey and normalizedDownKey don't support left and right arrows.
Could you please extend events.js?
I receive this error when trying to use the latest version of 'inquirer'.
var chalk = require('chalk');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module
Is there support for the latest 'inquirer' version?
inquirer-checkbox-plus-prompt cannot be used with latest version of inquirer(9.1.4).
Getting error -
npm ERR! Could not resolve dependency:
npm ERR! peer inquirer@"^8.2.5" from [email protected]
npm ERR! node_modules/inquirer-checkbox-plus-prompt
Not able to install [email protected] with [email protected] because in peerDependencies it is mentioned as "inquirer": "^8.2.5
Error message:
npm ERR! peer inquirer@"^8.2.5" from [email protected]
PR #16
There's a Regular Expression Denial of Service vulnerability in the ansi-regex package in versions < 6.0.1:
https://app.snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908
https://nvd.nist.gov/vuln/detail/CVE-2021-3807
Would it be possible to update inquirer deps to use a major version like [email protected]?
The dependencies from this package that use out of date versions that I see are:
[email protected] > [email protected]
Fix versions are https://github.com/chalk/ansi-regex/releases/tag/v6.0.1, https://github.com/chalk/ansi-regex/releases/tag/v5.0.1
Scene: Input keywords to search,choose one choice,I want search another choice,but I need delete search query manually。
If support new option for ""set search string empty after choose choice"" be nice for above scene :)
Since inquirer is now a native Node ECMAScript module, inquirer-checkbox-plus-prompt plugin crashes with the following error :
Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules\inquirer\lib\prompts\base.js from node_modules\inquirer-checkbox-plus-prompt\index.js not supported.
Instead change the require of base.js in node_modules\inquirer-checkbox-plus-prompt\index.js to a dynamic import() which is available in all CommonJS modules.
hi!! Why chalk in code , not in dependencies ?
answersSoFar
arg returns nothing.
Expected it to return the selected choices
const { tests: filteredTests } = await inquirer.prompt([
{
type: 'checkbox-plus',
name: 'tests',
message: 'Select test files',
highlight: true,
searchable: true,
default: selected,
async source(answersSoFar, input = '') {
console.log(answersSoFar) ///??? undefined
const res = fuzzy.filter(input, tests, {
extract: (item) => item.path
}).map((element) => element.original.path);
return res;
}
}
]);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.