gitui-org / gitui-org/gitui

Add syntax highlighting options for commit titles inside the log view

Open
#2,010 3 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
Rust
Stars
22.5k
Forks
773
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.