Syntax hightlighting for interactive rebase
dragunoff opened this issue · comments
That's a nice idea.
Does kate uses different colors for pick
, drop
, reword
, ... ? If so can you post a screenshot.
Commit now use GtkSourceView which has a powerful language spec system.
It doesn't have one for git but that should be reasonabily easy to do.
https://gitlab.gnome.org/GNOME/gtksourceview/-/tree/master/data/language-specs
https://wiki.gnome.org/Projects/GtkSourceView/LanguageDefinitions
https://builder.readthedocs.io/en/latest/plugins/editor/highlighting.html
https://gnome.pages.gitlab.gnome.org/gtksourceview/gtksourceview5/lang-tutorial.html
https://gnome.pages.gitlab.gnome.org/gtksourceview/gtksourceview5/lang-reference.html
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