Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add g:vimtex_view_sioyek_options to allow --reuse-window #2621

Closed
HakonHarnes opened this issue Jan 27, 2023 · 3 comments
Closed

Add g:vimtex_view_sioyek_options to allow --reuse-window #2621

HakonHarnes opened this issue Jan 27, 2023 · 3 comments

Comments

@HakonHarnes
Copy link

HakonHarnes commented Jan 27, 2023

Relevant issue: #2468.

Problem description

I use the subfiles latex package to sub-compile latex files (by toggling VimtexToggleMain) to reduce compilation time. At the moment, a new sioyek window is opened for each file that is compiled. I'd like to have one sioyek window that automatically opens the compiled files. This is possible using the --reuse-window option in sioyek (similar to the now deprecated --reuse-instance option).

As issue #2468 suggests, this is possible by setting should_launch_new_instance 0 in the sioyek configuration file. However, I don't want to always have this option enabled, since I often do want sioyek to open multiple windows in other situations. Therefore, I need to pass --reuse-window as a command line flag when using vimtex.

Proposed solution

As suggested in #2468, add a g:vimtex_view_sioyek_options.

lervag added a commit that referenced this issue Jan 27, 2023
@lervag
Copy link
Owner

lervag commented Jan 27, 2023

Done! :)

@lervag lervag closed this as completed Jan 27, 2023
@HakonHarnes
Copy link
Author

Done! :)

Takk! Fantastisk plugin :)

@lervag
Copy link
Owner

lervag commented Jan 27, 2023

Bare hyggelig; glad du liker den :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants