Support wrap-around arrow-key navigation in the vp run / vpr task selector
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
Direzione di ricerca
Inizia in crates/vt_select/src/interactive.rs, in State::move_up e State::move_down, quindi esegui la riproduzione fornita con vpr o vp run usando il package.json di esempio. Il lavoro è completato quando Up e Down fanno il giro ciclico tra le attività selezionabili filtrate, saltano le intestazioni, scorrono la nuova selezione nella vista e rimangono sicuri per gli elenchi vuoti o con un solo risultato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
Please support wrap-around arrow-key navigation in the interactive task selector opened by vp run / vpr without a task name.
Currently, pressing Up on the first task leaves the selection on the first task, and pressing Down on the last task leaves it on the last task. nr from @antfu/ni already allows moving directly between the first and last entries this way. Matching that behavior would make it quicker to reach tasks near the end of a long list and preserve familiar keyboard navigation when switching from nr to vpr.
I intend to submit a small implementation PR to the shared vt_select component in voidzero-dev/vite-task and link it here.
Suggested solution
- Up on the first selectable task selects the last selectable task.
- Down on the last selectable task selects the first selectable task.
- Wrap within the current search results, not the unfiltered list.
- Skip non-selectable workspace/group headings and scroll the newly selected task into view.
- Empty results and a single result remain safe no-ops.
Reproduction
Create a directory containing only this package.json (no dependency installation is needed):
{
"name": "task-picker-wrap-repro",
"private": true,
"scripts": {
"alpha": "echo alpha",
"beta": "echo beta",
"gamma": "echo gamma"
}
}
- Run
vpr(orvp run) in an interactive terminal. - With
alphahighlighted, press Up. It remains onalpha; the requested behavior is to selectgamma. - Press Down until
gammais highlighted, then press Down once more. It remains ongamma; the requested behavior is to selectalpha. - Press Ctrl+C to exit without running a task.
Alternative
Repeated arrow presses or typing a search query work, but require more input than wrapping directly at the list boundary.
Additional context
Reproduced with Vite+ 0.3.1 on Linux x86_64 in a real pseudo-terminal. The comparison command is @antfu/ni 30.5.0.
The boundary checks are in State::move_up and State::move_down in vt_select. This request concerns the vp run task selector, not Vite, Vitest, tsdown, Rolldown, or Oxc.
Validations
- Read the contributing guidelines.
- Searched existing issues and PRs in both
vite-plusandvite-taskand did not find the same request. - This concerns the Vite+ task-selection workflow.
- Lingua principale
- Rust
- Stelle
- 6k
- Fork
- 274
- Merge medio
- 1g 11h
- PR unite (30g)
- 196
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi 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 voidzero-dev/vite-plus
-
`npx --package=vite-plus vp create` fails with exit 127 when npm is the chosen package managerForse già presa @Crimson341 l’ha presa 1 giorno fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
voidzero-dev/vite-plus#2970 ·
I maintainer di solito rispondono entro 1 giorno
-
pending triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
voidzero-dev/vite-plus#2882 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
voidzero-dev/vite-plus#2097 · 10 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
vp treats a nested project as part of the parent's pnpm workspace, ignoring its own packageManager and lockfileForse già presa @liangmiQwQ l’ha presa oggi. Apertabug enhancement
voidzero-dev/vite-plus#3013 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Windows: PowerShell installer (1.1.0) does not add vite-plus\bin to user PATH — 'vp' not recognizedForse già presa @fengmk2 l’ha presa oggi. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
voidzero-dev/vite-plus#2984 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di voidzero-dev/vite-plus
Issue simili
-
proxy: SQL-over-HTTP turns empty arrays into [""] or [false], or HTTP 500 for int and float arraysAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
neondatabase/neon#12965 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
goauthentik/authentik#26867 ·
I maintainer di solito rispondono entro 1 giorno
-
api bug macos maintainer-needed p2 triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
area::tern difficulty::easy good first issue kind::cleanup triage::ready
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
eclipse-zenoh/zenoh#2842 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno