git-log--graph icon indicating copy to clipboard operation
git-log--graph copied to clipboard

Hide-sidebar-buttons should only hide the buttons, not the branch names

Open J-Sorenson opened this issue 11 months ago • 4 comments

I was delighted to find the new "Hide-sidebar-buttons" to remove the large blue buttons from the sidebar, but sad to see that I lost the branch names as well. We have long branch names (autogenerated), and if a commit has multiple branches, then only the first or second branch is visible from the main view. Similar to GitK, the branch names should remain in the sidebar view where we can easily read them and right-click on them for actions.

I don't know if there are people who actually want to hide the branch names as well. My preference is to only hide the buttons. I suppose we could add a "Hide-sidebar-branch-names" setting if someone needs to save another 2-3 lines of text.

J-Sorenson avatar Jan 10 '25 01:01 J-Sorenson

Looks to be related to #92 (still open?), which requested hiding the buttons. This request is to modify the behavior so that the branch names remain visible.

J-Sorenson avatar Jan 10 '25 01:01 J-Sorenson

I think it wouldn't hurt to let the branch (and tag) names displayed even though I don't really the info at this position. If the textural branch name is removed, then it wouldn't even need more space.

Example of current state:

grafik

Suggestion with hidden buttons:

  • symbol for tag
  • is the tagger's name important at this point? Maybe display only by hovering?

grafik

or

grafik

hansu avatar Jan 10 '25 12:01 hansu

@hansu: I approve of your layout. I prefer keeping the commit message on top, and I definitely want the tag names. We may want to keep them stacked vertically in case there are numerous tags and branches. Besides, that could mean less code change. Unfortunately, I'm a C++/MATLAB/Python coder, so I won't be the best person to enact this unless I learn a new skill.

J-Sorenson avatar Mar 26 '25 23:03 J-Sorenson

Oh, you were wondering if we need to keep the tag annotations. Yah...I think we should keep those. I don't like hiding potentially useful information from the summary. If someone wants an option to hide that, then it should be a separate issue.

J-Sorenson avatar Mar 26 '25 23:03 J-Sorenson

this is inplemented since 0.1.25. also the sidebar buttons are now default off. branch names are grouped, I just reused the logic from the main view. tag body stayed the same as this info just comes from git show refs/tags/tagname for now.

phil294 avatar Jun 29 '25 23:06 phil294