Alignment and unknown unicode characters #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would be nice if the column size would automatically adapt to the content.
In my example the Domain and Server columns are cut off while the Version and Updates columns have too much space.
Further I use the urxvt terminal and many columns only show an unknown unicode sign (the square).
Example:
Ah yes, true on the width, it could adjust. Would a suitable solution be that the width of the column is the width of longest item + some padding? For the missing unicode character, yeh, perhaps Not An Emoji is more portable 😆 Thanks for the report!
I think a good solution to determine the column width would be to first sort the columns by the width of their longest item and then set the widths from the smallest columns up the the widest column by their width of longest item + some padding until the window size is reached. This way very long columns would not swallow up smaller columns.
@moritz nice! do you think this could result in a confusing UI/UX where columns end up being in different places when content length changes? also it doesn't take into account which columns are "more important", this could be subjective but I feel like leftmost stuff should be where the eyes land first?
With sorting I don't mean to sort the order of displayed columns, only sort the values for the algorithm to calculate the column width.