sioyek
sioyek copied to clipboard
automatic fit_to_page_height_smart after forward search is executed in cli
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?
You can run this after doing the synctex forward search:
sioyek --execute-command fit_to_page_height_smart
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: @.***>
You are using the development branch, right?
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: @.***>
There is no wait_for_renders_to_finish
in the release version.
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: @.***>
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: @.***>