In blame view, add option to toggle commit id

Open
#89 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start at tig's blame view and the control that displays commit IDs. Trace how the current commit column is rendered, then determine how the proposed Normal, Off, Symbolic, and Short choices fit the existing controls. Done means the blame view can toggle among the requested commit-display modes.

Written by the indexing model from the issue text.

Description

component:blame

Sometimes it is just interesting who wrote a line and seeing more columns of the file is more interesting than seeing the commit id. Adding a toggle to the control the display of the commit would solve this. I suggest that the following options may be used for the commit:

  1. Normal (like now)
  2. Off
  3. Symbolic (show HEAD, HEAD^1, HEAD^3) etc
  4. Short(? - e.g. minimum of unique characters needed to be unique)
Dominant language
C
Stars
13.3k
Forks
669
PR merge metrics
No merged PRs in 30d

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.

More from jonas/tig

All issues in jonas/tig

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.