gitui-org / gitui-org/gitui

View combined directory diff / multiple files

Aperta
#1,952 0 commenti 4 reazioni 0 assegnatari Vedi su GitHub
feature-request
Lingua principale
Rust
Stelle
22.5k
Fork
773
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Is your feature request related to a problem? Please describe.**
I want to view the diffs of multiple files in a folder when the folder is selected.
It's frustrating to me when I have to go through separate files which all contain small changes, when those files are in the same folder.

**Describe the solution you'd like**
When a folder is selected in the left pane, the right pane should show a concatenated diff of all the files in that folder.
If there are multiple sub-directories, these files' diffs should also be shown.
Ideally, this would also be a configurable setting, for people who do not like this behavior. The default can be the currently existing behavior.
Even more advanced, it would somehow be possible to select multiple files and folders in the left pane. Then, the combined diffs of the selected files is shown on the right.

**Describe alternatives you've considered**
If this is already possible somehow, please let me know. I've searched through the existing issues and docs and came up empty.

**Additional context**
- I know the feature from e.g. [SourceTree](https://www.sourcetreeapp.com/).
- This probably affects the `Status`, `Log`, and `Stashes` tabs.
- Of course also in the `Staged Changes` pane.

Screenshots:

![Screenshot 2023-11-14 at 10 37 38](https://github.com/extrawurst/gitui/assets/9076894/a001f8a1-c344-4682-8abc-2d77a15b2868)
![Screenshot 2023-11-14 at 10 38 21](https://github.com/extrawurst/gitui/assets/9076894/ba4d50ff-35d8-40b2-b1f3-87c9d131c661)
![Screenshot 2023-11-14 at 10 38 50](https://github.com/extrawurst/gitui/assets/9076894/959bdc36-3a51-4214-8b8c-4b23c0bdace0)

Here, when the `src` directory is selected, the diff contents of `cmdbar.rs` and `main.rs` should be displayed to the right, one after the other, as if the results when each file is selected are concatenated.

This is what it looks like in Sourcetree:

![Screenshot 2023-11-14 at 10 45 32](https://github.com/extrawurst/gitui/assets/9076894/1c421342-0974-4402-ab44-be7557e8c2c1)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando il comportamento esistente dei diff della selezione dei file nei pannelli Status, Log, Stashes e Staged Changes. Definisci come devono funzionare la selezione ricorsiva delle cartelle, i diff concatenati, la selezione multipla e un’impostazione opzionale, quindi verifica che ogni pannello interessato mostri l’output combinato previsto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
git, rust
Ambito
cli, devtools
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.