gitui-org / gitui-org/gitui

Add syntax highlighting options for commit titles inside the log view

Offen
#2,010 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
feature-request
Vorherrschende Sprache
Rust
Sterne
22.5k
Forks
773
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I would like some more visual clues while scanning a log view as to what is important or not or might be related to the thing I'm looking for. My projects mostly follow the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) guidelines, so they have lots of easy to parse information that could be used for this. Commits are categorized as to whether they are feature additions, bug fixes, refactors, documentation, etc. Also they show the scope of the commit.

I would like some sort of syntax highlighting / formatting for commit titles that took this info into account. For example:

* Use different highlight colors for the titles of different types of commits (red for bugs, blue for docs, light grey for style changes, etc.).
* Perhaps hide the commit type entirely in favor of just the color scheme.
* Add alignment so the actual commit titles line up as another column after the type and scope info.

I may be able to work on this some if such a feature set would be acceptable. Presumably this would just involve some sort of filter widget used when outputting message that adds either conventional commit specific or generic pattern matching of some kind.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der Log-Ansicht und dem im Issue beschriebenen Nachrichten-Ausgabefilter bzw. -Widget. Da keine Datei oder kein Test genannt ist, ermittle zuerst, wo Commit-Titel gerendert werden und wie die Filterung strukturiert ist. Die Aufgabe wäre abgeschlossen, wenn ein abgestimmtes Design für das Parsen von conventional-commit, Farben, Sichtbarkeit und Ausrichtung vorliegt, gefolgt von einer Testabdeckung für das ausgewählte Verhalten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.