sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

exact_highlight_select uses mouse event's coordinates instead of highlight's coordinates

Open hrdl-github opened this issue 2 years ago • 2 comments

I haven't noticed this until now because I usually use single_click_selects_words 1. Sometimes this fails, e.g. in equations or occasionally at the end of sentences, and I switch to character selection mode using double click. When adding a highlight the entire word is selected. This also happens when using single clicks and single_click_selects_words 0.

hrdl-github avatar Jun 09 '23 09:06 hrdl-github

There is anexact_highlight_select config option to configure this behavior.

ahrm avatar Jun 09 '23 09:06 ahrm

Thanks, I hadn't seen that one when looking at the code. That option does not work well when selecting entire words though, as it seems to use the mouse coordinates. I'll fix this sometime this weekend.

hrdl-github avatar Jun 09 '23 09:06 hrdl-github