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

Preview Should Open in Same Tab #135216

Closed
cawoodm opened this issue Oct 16, 2021 · 10 comments
Closed

Preview Should Open in Same Tab #135216

cawoodm opened this issue Oct 16, 2021 · 10 comments
Assignees
Labels
feature-request Request for new features or functionality markdown Markdown support issues

Comments

@cawoodm
Copy link

cawoodm commented Oct 16, 2021

This should be a no-brainer - when I am editing a document I want to preview it on the right in the same tab and not in a separate tab or tab group. The default behaviours (open in new tab or open in new tab in new group) both mean that when I navigate away I have to manually manage getting back to 2 tab groups.

Back story - this was originally requested in #58525 and incorrectly closed and marked as a duplicate of #37883 which is a different issue/request.

The wish is that HTML/Markdown previews can open in the same TAB:
image

@mjbvz
Copy link
Collaborator

mjbvz commented Oct 18, 2021

There's a Markdown: Open preview command in addition to Markdown: Open preview to the side

@mjbvz mjbvz closed this as completed Oct 18, 2021
@mjbvz mjbvz added *question Issue represents a question, should be posted to StackOverflow (VS Code) markdown Markdown support issues labels Oct 18, 2021
@cawoodm
Copy link
Author

cawoodm commented Oct 19, 2021

@mjbvz Yes, this opens the preview in a new tab. Please re-open my request.

image

@mjbvz
Copy link
Collaborator

mjbvz commented Oct 19, 2021

For that, use View: toggle editor type or view: reopen editor with

@cawoodm
Copy link
Author

cawoodm commented Oct 19, 2021

No, that also does not split the current tab into editor | preview.

@cawoodm
Copy link
Author

cawoodm commented Oct 19, 2021

Hope this makes it plainer:
image

@macintacos
Copy link

macintacos commented Oct 19, 2021

@mjbvz @cawoodm wouldn't this be a perfect fit for the "Split In Group" set of commands that was just released in 1.61? When it was released I thought surely markdown preview would be supported as part of that, but it seems like that wasn't added.

@macintacos
Copy link

macintacos commented Oct 19, 2021

For context, I use the following setting to automatically open Markdown Previews to the side when I open a Markdown file:

  "markdown.extension.preview.autoShowPreviewToSide": true,

However, the annoying thing about this is that when you close out one of the tabs, you have to manually navigate over to the preview (or the editor) and close it out. I would like to treat the markdown raw text and the preview as a single "entity", and close them/open them at the same time. That seems to be essentially what @cawoodm is asking for here, and I don't believe that this is possible. I'm in agreement that this issue should be reopened, as it's not currently possible in VSCode.

@mjbvz mjbvz reopened this Oct 19, 2021
@mjbvz mjbvz added feature-request Request for new features or functionality and removed *question Issue represents a question, should be posted to StackOverflow (VS Code) labels Oct 19, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality markdown Markdown support issues
Projects
None yet
Development

No branches or pull requests

4 participants
@cawoodm @macintacos @mjbvz and others