sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

jumping to label doesnt work properly

Open javivera opened this issue 1 year ago • 7 comments

Whenever I click on a link its jumps to it but instead of properly display the link at the top part of the window it puts it on the middle of thew window.. Also when trying to visualize the link with secondary buttom, the link its not centered.

javivera avatar Oct 11 '24 02:10 javivera

image

This is after the jump .. The jump was exactly to the part where it says Definition 1.1

javivera avatar Oct 11 '24 02:10 javivera

We have an align_link_dest_to_top config option for that.

ahrm avatar Oct 11 '24 06:10 ahrm

Thank you for the answer i really wanted to use sioyek and it was driving me nuts... specially because the hover over also wasnt working since it showed me the wrong part of the link

is there a way to add to prefs.config , since user.prefs doesent work for me (macOS)

Excuse me if the answer is to silly.. i dont seem to find that option on the documentaion , nor a way to activate it

i tried adding the line align_link_dest_to_top 1 on the prefs.config file

javivera avatar Oct 11 '24 13:10 javivera

Which sioyek version are you using? I think this option is available in the preview release here: https://github.com/ahrm/sioyek/releases/tag/sioyek3-alpha0 it might not be available in older sioyek versions.

ahrm avatar Oct 11 '24 14:10 ahrm

Im using the release version 2.0

i downloaded the alpha arm version you suggested for mi m1 pro and i get an error. Sioyek is damaged and cant be opened , you should eject disk image, etc..

javivera avatar Oct 11 '24 14:10 javivera

the correct version wasnt ARM, but mac os normal

Installed the alpha version and added

align_link_dest_to_top 1

to prefs.config and now its working

Thanks for telling the assist

And thanks for the code!

javivera avatar Oct 11 '24 14:10 javivera

Oh a single detail..when using secondary buttom to hover over link, the hover over has the same problem its not properly aligned at the top

javivera avatar Oct 11 '24 15:10 javivera