tmux-thumbs icon indicating copy to clipboard operation
tmux-thumbs copied to clipboard

Width of wide characters are not calculated correctly?

Open m5d215 opened this issue 3 years ago • 1 comments

It seems that the character widths of some of the wide characters are not calculated correctly, causing the hints to be misplaced.

echo '├ 192.168.1.1'

prefix+I ⬇️


I expect this is a problem with the unicode-width package, but is it possible to fix it?

m5d215 avatar Feb 15 '21 12:02 m5d215

It is a really long story. I'm also facing this from time to time. It looks like there is a subset of characters that are difficult to know their width. Or on the other hand, unicode-width follows the specification but then the UI representation is a little different.

More information: http://www.unicode.org/reports/tr11/

If we are able to solve this, it will be awesome. I use to play with those two files to get those errors:

https://github.com/fcsonline/tmux-thumbs/blob/master/samples/test4 https://github.com/fcsonline/tmux-thumbs/blob/master/samples/test1

fcsonline avatar Feb 16 '21 08:02 fcsonline