I have tried to enable the commit id on the main view by config, but it does not work.
If I enable id with "o" then "X" keyboard shortcut it works correctly. The id-width property works well from .gitconfig.
I use tig v2.3.0 on MacOS, I have installed it by MacPorts 2.4.2.
To enable display of the commit ID in the main view via ~/.tigrc use:
set main-view-id = yes
Let me know if that works. Else please provide more info about what config file you are talking about and what setting(s) you have tried.
Yes, I am able to set id from ~/.tigrc but I would keep my git setting in on place.
I've tried adjust it in the ~/.gitconfig like this:
[tig]
line-graphics = utf-8
vertical-split = horizontal
id = yes
id-width = 10
This one works:
[tig]
main-view-id = yes
In other words, the id setting has to fully qualified.
Thank you very much! Works well.
There is a minor misunderstanding because the "id-width" works without full-qualification, other hands I also tried the "main-id" key. So it does not seem too consistent.
It's because there's a special case in code which should probably be removed: https://github.com/jonas/tig/blob/0a410cfdad7729edb58311451c4f5ad9ec98ee44/src/options.c#L615
Happy we figured this out. I will go ahead and close this issue.
Most helpful comment
To enable display of the commit ID in the main view via
~/.tigrcuse:Let me know if that works. Else please provide more info about what config file you are talking about and what setting(s) you have tried.