feature: Public API for companion review plugins?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- lua, neovim
- Ambito
- api, developer-experience
Direzione di ricerca
This is an API design question, not a bug report. Start with the existing CodeDiffOpen, CodeDiffClose and CodeDiffFileSelect events and the public navigation functions the issue mentions, and check which of the three requested capabilities (reading the active comparison, jumping to a line or range, and a ready/refresh event) they already cover. Done means a maintainer decides the public surface, and the issue has no comments or decision yet, so wait for that before writing code.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I have a fork with AI summaries for what changed and why, plus line-by-line explanations of selected code. I'd like to move those into a separate companion plugin and add a guided review that walks through related changes in order, using CodeDiff as the diff viewer.
The main thing I'm trying to figure out is how to do that without depending on CodeDiff's internal modules. Right now my changes use session state, diff buffers, and refresh internals.
Would you be open to a small public API that lets a companion plugin:
- Read the active comparison: repository, revisions, selected file, old/new buffers, and changed ranges.
- Select a file and jump to a line or range on either side of the diff.
- Get an event after the diff is ready or refreshed, so explanations can be updated or cleared when the code changes.
I saw the existing CodeDiffOpen, CodeDiffClose, and CodeDiffFileSelect events and the public navigation functions. Is there already a supported way to cover the rest, or would adding a few extension points make sense? Of course, I'm happy to help work on this api, I don't expect you to just do it for me.
The companion would handle the AI connection, prompts, explanations, and tour state. CodeDiff would handle displaying the diff. I'd like to get your thoughts on the approach before building more around the internals.
- Lingua principale
- Lua
- Stelle
- 1.6k
- Fork
- 104
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 esmuellert/codediff.nvim
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
esmuellert/codediff.nvim#582 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
esmuellert/codediff.nvim#579 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
esmuellert/codediff.nvim#575 ·
-
Bug: explorer.focus_on_select = false ignored for added/untracked/deleted files in inline layoutApertaType/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
esmuellert/codediff.nvim#567 · 1 reazione ·
-
Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
esmuellert/codediff.nvim#565 · 1 commento ·
Tutte le issue di esmuellert/codediff.nvim
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
good first issue
Difficoltà 2/5 Mezza giornata Idoneità per principianti 74/100
whoismjanyway/sereno#14 ·
-
luaebpf: the by-example page's intro names two outcomes of a lowering and omits the stop with the default verdictForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertadocumentation severity: low
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
luainkernel/lunatik#2231 ·
I maintainer di solito rispondono entro 1 giorno
-
bug triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
Cidan/BetterBags#1239 ·
I maintainer di solito rispondono entro 1 giorno