sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

automatic fit_to_page_height_smart after forward search is executed in cli

Open yashamon opened this issue 1 year ago • 7 comments

After executing forward search to line, the document centers on the line. I would like it to fit_to_page_height_smart instead. Maybe there is a cli argument to run an additional command?

yashamon avatar Feb 22 '24 19:02 yashamon

You can run this after doing the synctex forward search:

sioyek --execute-command fit_to_page_height_smart

ahrm avatar Feb 23 '24 07:02 ahrm

I had to do

sioyek --execute-command wait_for_renders_to_finish; sioyek --execute-command fit_to_page_height_smart

However, now the highlight from forward search disappears.

On Fri, Feb 23, 2024 at 2:47 AM ahrm @.***> wrote:

You can run this after doing the synctex forward search:

sioyek --execute-command fit_to_page_height_smart

— Reply to this email directly, view it on GitHub https://github.com/ahrm/sioyek/issues/981#issuecomment-1960866790, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQGIZQ3WBJLS5YANQWCOI3YVBCQBAVCNFSM6AAAAABDVQDR6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQHA3DMNZZGA . You are receiving this because you authored the thread.Message ID: @.***>

yashamon avatar Feb 23 '24 14:02 yashamon

You are using the development branch, right?

ahrm avatar Feb 23 '24 14:02 ahrm

I am using the scoop version, which appears to be release.

On Fri, Feb 23, 2024 at 9:38 AM ahrm @.***> wrote:

You are using the development branch, right?

— Reply to this email directly, view it on GitHub https://github.com/ahrm/sioyek/issues/981#issuecomment-1961448942, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQGIZVTXAHDOUEHPT2ICJ3YVCSU7AVCNFSM6AAAAABDVQDR6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRRGQ2DQOJUGI . You are receiving this because you authored the thread.Message ID: @.***>

yashamon avatar Feb 23 '24 14:02 yashamon

There is no wait_for_renders_to_finish in the release version.

ahrm avatar Feb 23 '24 14:02 ahrm

Oh, well it probably just slows the thread so that fit_to_page_height_smart executes. Otherwise, sioyek --execute-command fit_to_page_height_smart does nothing.

On Fri, Feb 23, 2024 at 9:59 AM ahrm @.***> wrote:

There is no wait_for_renders_to_finish in the release version.

— Reply to this email directly, view it on GitHub https://github.com/ahrm/sioyek/issues/981#issuecomment-1961484522, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQGIZU6EFFXKJFT3DG7WBTYVCVFDAVCNFSM6AAAAABDVQDR6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRRGQ4DINJSGI . You are receiving this because you authored the thread.Message ID: @.***>

yashamon avatar Feb 23 '24 15:02 yashamon

I should say it does nothing if executed right after forward search with no delay. Otherwise, it does work.

On Fri, Feb 23, 2024 at 10:46 AM yasha savelyev @.***> wrote:

Oh, well it probably just slows the thread so that fit_to_page_height_smart executes. Otherwise, sioyek --execute-command fit_to_page_height_smart does nothing.

On Fri, Feb 23, 2024 at 9:59 AM ahrm @.***> wrote:

There is no wait_for_renders_to_finish in the release version.

— Reply to this email directly, view it on GitHub https://github.com/ahrm/sioyek/issues/981#issuecomment-1961484522, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQGIZU6EFFXKJFT3DG7WBTYVCVFDAVCNFSM6AAAAABDVQDR6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRRGQ4DINJSGI . You are receiving this because you authored the thread.Message ID: @.***>

yashamon avatar Feb 23 '24 15:02 yashamon