fcsonline / tmux-thumbs

A lightning fast version of tmux-fingers written in Rust, copy/pasting tmux like vimium/vimperator
MIT License
918 stars 61 forks source link

hightlight pos render error #158

Open Marskey opened 7 months ago

Marskey commented 7 months ago

image

font is https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/Meslo.zip

purajit commented 1 month ago

Happens here too - in my usual font (Mononoki Nerd) or even with system default monospace font.

I'm guessing it's to do with regex capture groups. I have a regex capture for 20\d{6}-[a-zA-Z0-9-_.]+ (a date followed by hypenated words). With this, I get the hint after the 20 of the string. Changing it to \d{8}-[a-zA-Z0-9-_.]+ works (hint starts at the beginning)

purajit commented 1 month ago

Ah, the problem is ligatures https://github.com/fcsonline/tmux-thumbs/pull/161 Your prompt is a ligature - I assume you use nf-fa-angle_right (\uf105) which I do too. That's why the prompt line has an incorrect position but the output line doesn't.

purajit commented 1 month ago

I have something that works in https://github.com/fcsonline/tmux-thumbs/pull/162