All Projects → adelsz → inquirer-fuzzy-path

adelsz / inquirer-fuzzy-path

Licence: MIT license
Fuzzy file/directory search and select prompt for Inquirer.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to inquirer-fuzzy-path

PromptCLI
Interactive command line interface library
Stars: ✭ 30 (-56.52%)
Mutual labels:  prompt, inquirer
Inquirer Checkbox Plus Prompt
Checkbox with autocomplete and other additions for Inquirer
Stars: ✭ 25 (-63.77%)
Mutual labels:  fuzzy-search, prompt
enquirer
Stylish, intuitive and user-friendly prompts, for Node.js. Used by eslint, webpack, yarn, pm2, pnpm, RedwoodJS, FactorJS, salesforce, Cypress, Google Lighthouse, Generate, tencent cloudbase, lint-staged, gluegun, hygen, hardhat, AWS Amplify, GitHub Actions Toolkit, @airbnb/nimbus, and many others! Please follow Enquirer's author: https://github.…
Stars: ✭ 6,523 (+9353.62%)
Mutual labels:  prompt, inquirer
requestty
An easy-to-use collection of interactive cli prompts inspired by Inquirer.js.
Stars: ✭ 158 (+128.99%)
Mutual labels:  prompt, inquirer
yargs-interactive
Interactive support for yargs
Stars: ✭ 40 (-42.03%)
Mutual labels:  prompt, inquirer
whaaaaat
Inquirer.js port to Python (https://www.npmjs.com/package/inquirer). people blame me for staling this project. I do not have time to work on this right now - whaaaaat do you want me to do? take it offline?
Stars: ✭ 73 (+5.8%)
Mutual labels:  prompt, inquirer
string-similarity-js
Lightweight string similarity function for javascript
Stars: ✭ 29 (-57.97%)
Mutual labels:  fuzzy-search
shellfirm
Intercept any risky patterns (default or defined by you) and prompt you a small challenge for double verification
Stars: ✭ 159 (+130.43%)
Mutual labels:  prompt
kafka-shell
⚡A supercharged, interactive Kafka shell built on top of the existing Kafka CLI tools.
Stars: ✭ 107 (+55.07%)
Mutual labels:  prompt
fish-fzy
fzy inegration with fish. Search history, navigate directories and more. Blazingly fast.
Stars: ✭ 18 (-73.91%)
Mutual labels:  fuzzy-search
folderslint
📁 Directory structure linter for JavaScript projects
Stars: ✭ 131 (+89.86%)
Mutual labels:  directory-tree
FastFuzzyStringMatcherDotNet
A BK tree implementation for fast fuzzy string matching
Stars: ✭ 23 (-66.67%)
Mutual labels:  fuzzy-search
fish-kube-prompt
⎈ kubectl context/namespace in your fish shell prompt
Stars: ✭ 71 (+2.9%)
Mutual labels:  prompt
rosette-elasticsearch-plugin
Document Enrichment plugin for Elasticsearch
Stars: ✭ 25 (-63.77%)
Mutual labels:  fuzzy-search
lambda-pure
Pretty, minimal and fast ZSH prompt, with NodeJS version
Stars: ✭ 107 (+55.07%)
Mutual labels:  prompt
OpenPrompt
An Open-Source Framework for Prompt-Learning.
Stars: ✭ 1,769 (+2463.77%)
Mutual labels:  prompt
smartcd
Expedite your navigation of Linux filesystem.
Stars: ✭ 35 (-49.28%)
Mutual labels:  fuzzy-search
bolt.nvim
⚡ Ultrafast multi-pane file manager for Neovim with fuzzy matching
Stars: ✭ 100 (+44.93%)
Mutual labels:  fuzzy-search
react-native-input-prompt
A cross-platform user input prompt component for React Native with Native UI.
Stars: ✭ 45 (-34.78%)
Mutual labels:  prompt
promptconfig
🖥 Craft a custom terminal prompt with JSON.
Stars: ✭ 32 (-53.62%)
Mutual labels:  prompt

inquirer-fuzzy-path

npm npm

Fuzzy file/directory search and select prompt for Inquirer.js

inquirer-fuzzy-path demo

Usage

Register the prompt with inquirer:

inquirer.registerPrompt('fuzzypath', require('inquirer-fuzzy-path'))

Call the prompt:

  return inquirer.prompt([
    {
      type: 'fuzzypath',
      name: 'path',
      excludePath: nodePath => nodePath.startsWith('node_modules'),
        // excludePath :: (String) -> Bool
        // excludePath to exclude some paths from the file-system scan
      excludeFilter: nodePath => nodePath == '.',
        // excludeFilter :: (String) -> Bool
        // excludeFilter to exclude some paths from the final list, e.g. '.'
      itemType: 'any',
        // itemType :: 'any' | 'directory' | 'file'
        // specify the type of nodes to display
        // default value: 'any'
        // example: itemType: 'file' - hides directories from the item list
      rootPath: 'app',
        // rootPath :: String
        // Root search directory
      message: 'Select a target directory for your component:',
      default: 'components/',
      suggestOnly: false,
        // suggestOnly :: Bool
        // Restrict prompt answer to available choices or use them as suggestions
      depthLimit: 5,
        // depthLimit :: integer >= 0
        // Limit the depth of sub-folders to scan
        // Defaults to infinite depth if undefined
    }
  ]);

Change log

  • In version 2.2.0 new option excludeFilter was added.
  • In version 2.1.0 new option depthLimit was added.
  • In version 2.0.0 option filterPath was deprecated. Please use excludePath and itemType instead.

Related

  • inquirer - A collection of common interactive command line user interfaces

License

MIT © adelsz

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].