Proposal: contrib/sem.tigrc with entity-level diff and blame bindings
Author: rs545837Created Sep 25, 2026Updated Sep 25, 2026
Would you be open to a small contrib file, in the same spirit as contrib/git-flow.tigrc, that adds bindings for sem?
sem is an open source tool that reports git changes per function, class and method rather than per line, so renames show as renames and reformatting shows as cosmetic. The file would only take effect if a user sources it from their ~/.tigrc.
The bindings would live under E (for entity), which has no default binding:
Edshows the entity diff of the selected commit, from the main, diff and blame viewsEwandEsshow the entity diff of the working tree and of staged changesEbshows blame per function for the selected fileEiprompts for a function name and lists what depends on it
Each binding runs sem and pages the output through less -R. I have a working version tested with tig 2.6.1 and can open a PR if this sounds useful.
Disclosure: I work on sem. Project: https://github.com/Ataraxy-Labs/sem
Source: jonas/tig