jonas / jonas/tig

Matching based coloring on cursor

Open
#830 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
13.3k
Forks
669
PR merge metrics
No merged PRs in 30d

Description

tig allows matching based coloring on the lines without the cursor and allows changing color of the cursor line.

Suggesting a change to combine these behaviors that allows the configuration below:

color cursor "--- "	white yellow default
color cursor "+++ " white yellow default
color cursor "+"  white green bold
color cursor "-" white red bold
color cursor default white green bold

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing tig's existing matching-based coloring and cursor-line color handling from the configuration entry points. Compare those behaviors with the proposed color rules, then verify that the example configuration supports both matching colors and cursor-line overrides without losing either existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, git
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.