sonnyp / Commit

Commit message editor

Home Page:https://apps.gnome.org/Commit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax hightlighting for interactive rebase

dragunoff opened this issue · comments

This is a nice feature that I miss from the Kate editor on KDE. When doing interactive rebase the action, hash and commit message are highlighted in different colors. It's a simple quality of life improvement. Here's a quick mock-up (with example colors):
image

Prior art in Kate text editor:
image

commented

That's a nice idea.

Does kate uses different colors for pick, drop, reword, ... ? If so can you post a screenshot.

Does kate uses different colors for pick, drop, reword, ... ? If so can you post a screenshot.

I hadn't noticed but indeed it uses different colors for some of the commands:
image

commented

Commit now has language definitions for git and hg

https://github.com/sonnyp/Commit/tree/main/src/language-specs

Should be quite straightforward to add support for git rebase syntax highlighting