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

Open other PDF files using the LaTex-Workshop viewer? #240

Closed
kaidatavis opened this issue Aug 16, 2017 · 12 comments
Closed

Open other PDF files using the LaTex-Workshop viewer? #240

kaidatavis opened this issue Aug 16, 2017 · 12 comments
Labels
enhancement Issue suggests an enhancement

Comments

@kaidatavis
Copy link

kaidatavis commented Aug 16, 2017

Is it possible to use latex-workshop as a generic pdf file viewer in vscode? It works quite well and I don't want to install another plugin.

Currently VScode doesn't support pdf file and the only pdf plugin (https://marketplace.visualstudio.com/items?itemName=tomoki1207.pdf) seems not being actively developed.

There is certainly quite some interests in this: microsoft/vscode#10821

@James-Yu
Copy link
Owner

Let me check if it is possible. Current scheme won't work with local files.

@James-Yu James-Yu added the enhancement Issue suggests an enhancement label Aug 17, 2017
@James-Yu
Copy link
Owner

I noticed that in the pdf-preview pack, users need to explicitly invoke a command to open a viewer instead of click on the item in left sidebar. Am I correct?

@kaidatavis
Copy link
Author

Do you mean the 'vscode-pdf' plugin? For me it doesn't support open pdf file from the sidebar. I didn't find any command in the command palette for opening pdf, either.

@yzhang-gh
Copy link
Contributor

I noticed that in the pdf-preview pack, users need to explicitly invoke a command to open a viewer instead of click on the item in left sidebar. Am I correct?

Yes, users need to right click on the pdf file from the sidebar and select 'open preview'

Upstream issue vscode#12176

@James-Yu
Copy link
Owner

James-Yu commented Sep 2, 2017

I'll keep a close eye on related api by vscode. Hope they might do something.

@aportelli
Copy link

Hi, just to comment that this would be an awesome feature, https://marketplace.visualstudio.com/items?itemName=tomoki1207.pdf kindof work but weird things happens (error messages, jumping tabs) if it is used simultaneously with the LaTex-Workshop viewer.

@James-Yu
Copy link
Owner

Will release this feature very soon.

@timfayz
Copy link

timfayz commented Aug 2, 2019

@James-Yu Seems like you've already done it but I can't find any evidence in the context menu :( Did I miss something? I expect it to be something like "Open preview" in the sidebar when right clicking at a file.

@tamuratak
Copy link
Contributor

Use left clicking.

@timfayz
Copy link

timfayz commented Aug 3, 2019

When I left clicking it gives me this:
image
After pressing open it anyway it indeed opens that preview but I always have to pointing.

@tamuratak
Copy link
Contributor

It is the intended behavior. There is nothing more we can do than this because of the restriction of API of VS Code.

@timfayz
Copy link

timfayz commented Aug 5, 2019

Got it, thank you.

Repository owner locked as resolved and limited conversation to collaborators Dec 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Issue suggests an enhancement
Projects
None yet
Development

No branches or pull requests

6 participants