Explorer: show file count and current position in the file tree
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 50/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- lua, neovim
- Ambito
- developer-experience
Direzione di ricerca
Start from navigate_next and navigate_prev in actions.lua, where the total count and current index are already computed, then find where the explorer panel and statusline components are rendered. Decide which of the proposed indicators to implement first, since the issue offers several alternatives without choosing one. Done means the selected indicator updates persistently as you move with ]f and [f, including at the first and last file.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
When reviewing a diff with many files, the explorer panel gives no indication of how many total files there are or where you currently are in the list. The only position feedback is the "Last file (N of N)" / "First file (1 of N)" echo message that appears at navigation boundaries — but nothing persistent or visible in the tree itself.
Proposed Solution
Show a file count and/or current position indicator in the explorer. Some options (not mutually exclusive):
- Group headers with counts — e.g.,
Changes (7)orStaged Changes (3)so you can see at a glance how many files are in each group. - Current position indicator — e.g.,
3/12shown somewhere persistent (statusline component, explorer title, or inline) so you always know where you are in the review. - Progress-style indicator — something like a subtle progress bar or fraction that updates as you navigate with
]f/[f.
This is especially useful for large PRs where you want to know how close you are to finishing the review.
Context
The navigate_next / navigate_prev functions in actions.lua already compute the total file count and current index — this data just is not surfaced persistently in the UI.
- 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 72/100
nvim-tree/nvim-tree.lua#3383 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Balatro-Multiplayer/BalatroMultiplayerPvP#620 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
Balatro-Multiplayer/BalatroMultiplayerAPI#55 ·
I maintainer di solito rispondono entro 2 giorni