gitfourchette icon indicating copy to clipboard operation
gitfourchette copied to clipboard

Enhancement: Make commit name in the separator widget multiline

Open KingAir opened this issue 9 months ago • 4 comments

Currently, the commit displayed in the separator widget (between the commit list and commit description) is limited to a single line. When a commit has a long or multiline name, it becomes difficult to read.

Proposed Solution

  • Allow the commit in this widget to be displayed on multiple lines if necessary.

  • Or: Make the separator widget resizable so users can adjust its height.

  • Or: Show the full commit in a tooltip on hover instead.

KingAir avatar Mar 09 '25 15:03 KingAir

Just in case you missed it, you can click the "Info" button to the right of the commit title in this separator to display a dialog with detailed information about the commit, including the extended message:

Image

That said, I do agree that this is cumbersome and a more convenient way to see the full message would be nice.

IMHO the [...] that appears at the end of a commit that has additional text could be changed to an expand/collapse arrow, which when clicked would expand the separator area to allow the commit body to appear. In fact, if it isn't asking too much, maybe even the commit graph could allow the message to expand in-place as well 😇

Image

I think the first proposed solution (automatically resizing the separator to fit the commit contents) could be potentially very disruptive, making abrupt changes to the program's layout as you navigate across commits. And the tooltip approach, while technically workable, feels a bit like a hack tbh (it's weird when a tooltip grows so much to fit its contents that it ends up looking more like a dialog box — but one that is very finicky and will disappear as soon as your cursor moves out of it).

waldyrious avatar Mar 10 '25 00:03 waldyrious

That sounds like an awesome idea! Swapping [...] for an expand/collapse arrow would make it way easier to quickly check the full commit message without opening a separate dialog.

Also, it’d be great if the commit text in the separator widget was selectable for copying.

KingAir avatar Mar 10 '25 06:03 KingAir

I also like the expand/collapse idea! And I agree it'd be nice if the text were selectable. In addition to the Info button that Waldir mentioned, here are more tips until a real solution comes along:

  • When the commit message is truncated, you can hover over it in the graph to get a tooltip. It would probably be more consistent if the separator also did this.
  • You can copy the commit message or hash by right-clicking the commit in the graph.

jorio avatar Mar 10 '25 07:03 jorio

When the commit message is truncated, you can hover over it in the graph to get a tooltip.

Ah, right, I had the impression that this was the case but somehow failed to reproduce this yesterday. Here's a screenshot that illustrates this feature and demonstrates what I mean with "unnaturally large tooltips":

Image

waldyrious avatar Mar 10 '25 09:03 waldyrious