James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.76k stars 535 forks source link

Alt-click on Preview to open the preview not to the side #4458

Closed scoskey closed 1 week ago

scoskey commented 2 weeks ago

Please fill the following fields with a star (*) and provide as much related information as possible.

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • [x] The feature request has not been suggested in this repository. (I hope)

The Missed*

Is your feature request related to a problem? Please provide a clear and concise description of what the problem is.

  • When writing markdown you can preview in a new tab to the side, or alt-click (option-click) to preview in a new tab in the same tab group as the current one.

The Solution*

Please provide a solution you would like to have.

  • Add the same functionality for previewing latex.

Anything Else?

Add any other context about the feature request below.

  • I hope this is clear, sensible, and easy to do :)
jlelong commented 2 weeks ago

Have you checked https://github.com/James-Yu/LaTeX-Workshop/wiki/View#latex-workshopviewpdftabeditorgroup ?

scoskey commented 2 weeks ago

No I had not thank you! I think it would be nice to have two options (click and meta-click), like with markdown. I personally like to use both "right" and "current" in different moments. I suppose if there were two options, they could both could be configured in such a fashion.

jlelong commented 2 weeks ago

We will think of it. In the meantime, you can always drag and drop the viewer tab at an other position or configure latex-workshop.view.pdf.tab.editorGroup on a a project basis

jlelong commented 1 week ago

Currently, ctrl-alt-v opens preview according to the setting workshop.view.pdf.tab.editorGroup. If I understand correctly, you would like two shortcuts (functions) to open preview either in a new group or in a new tab in the same. Looking closely at the preview mechanism, it requires quite some refactoring and I am not sure how wise it is considering how tabs can easily be moved.

scoskey commented 1 week ago

No worries, that is understandable!