Document `options` getter of autocomplete prompt
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 32/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- cli
Direzione di ricerca
Inizia dal prompt di autocompletamento e dal suo getter options, quindi analizza come il filtraggio gestisce attualmente gli elementi restituiti. Confronta l’ordinamento fuzzy richiesto e il comportamento opzionale di completamento asincrono con l’API esistente del prompt. Il lavoro è completo quando il comportamento supportato e la relativa interfaccia sono chiaramente definiti e documentati oppure implementati in modo coerente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
I am re-implementing a script to search for an item and then perform some actions on it. The original script used fzf (a fuzzy search bash utility). This had the advantage of the closest match would appear at the top of the list. I would like to achieve the same with clack + fuse.js or a similar fuzzy search library, but clack only supports filtering, rather than applying an ordering to the results.
Describe the solution you'd like
I'd like to see an alternative filter option that allows for filtering and changing the order of the items returned (notably, if this filter option allows a promise to be returned, this could also be used to implement async autocompletion).
Describe alternatives you've considered
For now I'm just leaving the matches unordered. I could try using another library, but clack is the nicest [ie]nquirer alternative I've found.
Additional context
Add any other context or screenshots about the feature request here.
- Lingua principale
- TypeScript
- Stelle
- 8.1k
- Fork
- 217
- Merge medio
- 1g 11h
- PR unite (30g)
- 5
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bombshell-dev/clack
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
bombshell-dev/clack#597 ·
-
rfc: accessible mode Apertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
bombshell-dev/clack#585 · 1 commento · 1 reazione ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
bombshell-dev/clack#573 · 1 commento · 2 reazioni ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
bombshell-dev/clack#565 · 1 commento · 1 reazione ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
bombshell-dev/clack#564 · 1 reazione ·
Tutte le issue di bombshell-dev/clack
Issue simili
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Mend: dependency security vulnerability untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100