Stepping through a review with ] can pass content that never reached the screen
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- developer-experience
Direzione di ricerca
Start by reading app/ui/model.go around pendingHunkJump and pendingAnnotJump, then trace how ] and [ navigate hunks and annotations. The issue lays out alternative interaction designs but leaves the desired approach undecided, so first determine how those actions and config are structured. Done means one key can step through every hunk and annotation across files, with boundary behavior and documentation in README, site/docs.html, and the plugin references/usage.md.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
I lean heavily on ] to step through a review, with this in ~/.config/revdiff/config:
cross-file-hunks = true
The problem is that ] can move past content that never reached the screen:
- A hunk taller than the viewport lands with its first line near the top. The next
]goes to the following hunk, so the rest of the tall one is never shown. - Annotations outside a hunk get skipped: file-level ones, ones on context lines, and ones above the first hunk of a file
]crosses into.
So when I reach the last hunk, I can't tell whether I've seen everything. Today I check with a second pass on } or by opening @.
Options
Is this worth solving, and if so, how would you approach it? Here are the shapes I can see, in case they help.
A. Separate next_step / prev_step actions
A new pair of actions that steps through hunk starts and annotations, in file order, across files. ], [, }, { stay as they are.
The default keys would be s / S, both unbound, following the n / N pattern for forward and back. Anyone who wants to step with ] rebinds it in ~/.config/revdiff/keybindings:
map ] next_step
map [ prev_step
Pros: existing keys keep their meaning; no new option.
Cons: two more actions that overlap ] and }; a third file-crossing landing intent next to pendingHunkJump and pendingAnnotJump.
B. Configurable stops for ] / [
Turn cross-file-hunks into a list of what ] / [ do, the same way include / exclude take a list. Working name step, since the key is no longer stepping through hunks alone:
step = cross-file,annotations
| Value | ] / [ also |
|---|---|
cross-file |
crosses file boundaries (today's cross-file-hunks = true) |
annotations |
stops at annotations outside hunks, including file-level ones |
cross-file-hunks = true would keep working as step = cross-file.
Pros: no new keys; one setting for anyone who already steps with ].
Cons: ] means different things depending on config; a bool option migrates to a list.
Tall hunks
The tall-hunk case is a separate but related concern, and neither shape above covers it. It reads more like a viewport setting next to wrap than a stop type: working name show-more, where ] on a hunk taller than the viewport scrolls through the rest of it before moving to the next one.
Acceptance criteria
- Existing behavior is unchanged by default; any change to how
],[,},{behave is opt-in. - One key steps a review through every hunk and every annotation, crossing files.
- Past the last step (or before the first), the key does nothing, as
]/[do today at the last / first hunk. - README,
site/docs.html, and the pluginreferences/usage.mdcopies cover whichever shape lands.
- Lingua principale
- Go
- Stelle
- 928
- Fork
- 96
- Merge medio
- 2g 3h
- PR unite (30g)
- 28
Preparare l'ambiente
- 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 umputun/revdiff
-
Support horizontal scrollAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
umputun/revdiff#334 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 64/100
umputun/revdiff#324 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
pi extension: herdr never shows the agent as blocked while a revdiff review is openForse già presa @nicdumz l’ha presa 65 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di umputun/revdiff
Issue simili
-
bug raised-by:verifier
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
medici-finance/assay#4177 ·
I maintainer di solito rispondono entro 1 giorno
-
bug: admin user creation silently ignores roleForse già presa @bfs2021 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
eugenioenko/autentico#553 ·
I maintainer di solito rispondono entro 1 giorno
-
sidecar: --moriio-parallel-dispatch omits remote_request_id, so a vLLM NixlPushConnector decode dies with KeyErrorForse già presa @xintin l’ha presa oggi. Apertakind/bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
llm-d/llm-d-router#3607 ·
I maintainer di solito rispondono entro 1 giorno
-
automation models
Difficoltà 1/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
I maintainer di solito rispondono entro 1 giorno