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

Allow to move tabs into new or existing windows #155236

Closed
Chiramisu opened this issue Jul 14, 2022 · 11 comments
Closed

Allow to move tabs into new or existing windows #155236

Chiramisu opened this issue Jul 14, 2022 · 11 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality keep Issues we should not close as out of scope workbench-auxwindow Issues related to use of auxiliary ("floating") windows. workbench-tabs VS Code editor tab issues workbench-window Window management
Milestone

Comments

@Chiramisu
Copy link

Chiramisu commented Jul 14, 2022

Any browser has the ability to pull tabs out from one window into a new one or another existing one. I've been waiting for this functionality to be added to Code for years, expecting that it was an "obvious want" but it hasn't happened yet, and I don't see it in the backlog, so here I am. Please make it possible to dynamically disjoin tabs / files (saved or not) from one window in a new one, or adjoin it to another. Should also be able to shift/ctrl + click to select multiple tabs to disjoin at once.

Use Case:

  • Right click file to "Open in Code" opens the file in the most recent, but unintended window.
  • Side work unrelated to the current editor context which expands into something warranting a separate instance.

Feel free to add your own use cases to the discussion. This is my primary one. As for the context menu in Explorer, a Shift + click option could also be added to open in a New Code Window. The ability to disjoin, however, is a must.

@ArturoDent
Copy link

If by "disjoin" you mean move to a new editor AND close that file in the current editor, you could do this in a keybinding (as a partial, file-by-file, workaround for now):

{
  "key": "alt+w",
  "command": "extension.multiCommand.execute",
  "args": {
    "sequence": [
      "workbench.action.files.showOpenedFileInNewWindow",
      "workbench.action.closeActiveEditor"
    ]
  },
}

Using the macro extension multi-command. That will move the current editor to a new window and close that editor in the old window. This is just a small one-file workaround in the meantime I realize.

@bpasero bpasero added feature-request Request for new features or functionality workbench-tabs VS Code editor tab issues workbench-window Window management labels Jul 15, 2022
@bpasero bpasero removed their assignment Jul 15, 2022
@VSCodeTriageBot VSCodeTriageBot added this to the Backlog Candidates milestone Jul 15, 2022
@VSCodeTriageBot
Copy link
Collaborator

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@Chiramisu
Copy link
Author

@ArturoDent Yes sir that is what I mean. I'll give that workaround a try when I get a chance, but ideally this will be implemented in the same way modern browsers allow you to pull tabs out into separate windows. I can't tell you how often I run into this. Here's hoping for 20 votes. I posted a link on my Twitter as well, even though nobody follows me, lol (not that I care). 😋

@VSCodeTriageBot
Copy link
Collaborator

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@Chiramisu
Copy link
Author

Since this is in the backlog, but closed here, where can I find the trackable action item where I can see when this has been implemented and awaiting release?

@andrewyguo
Copy link

Since this is in the backlog, but closed here, where can I find the trackable action item where I can see when this has been implemented and awaiting release?

bump

@bpasero bpasero changed the title Add Ability to Disjoin Tabs Into New Windows Allow to move tabs into new or existing windows Dec 7, 2022
@bpasero
Copy link
Member

bpasero commented Dec 7, 2022

Partially depends on #8171

@bpasero bpasero added the keep Issues we should not close as out of scope label Dec 8, 2022
@Chiramisu
Copy link
Author

Along the lines of this Azure Data Studio for Better Multi-window Support, I think that bringing the context of the relevant workspace along is definitely the desired solution.

In this way, if you have a workspace open with some extra files not belonging to it, but you Ctrl+K, O, or drag the active file (when implemented) into a new window, the workspace that file is a part of (if any) should also be opened and activated in the destination window, which could also be configured with a setting (default?) to close that workspace (but not the extra unrelated files) in the source window.

I also tried your implementation of #9086 and it works just fine. So, the desired functionality is already partially implemented, but what remains is:

  1. Make a tab spawn a new window when dragged outside of the current one.
  2. Bring the context of that tab (workspace, etc.) over into the new window as well.
  3. [Optionally] If configured, close that context in the original window.

@bpasero bpasero added the workbench-auxwindow Issues related to use of auxiliary ("floating") windows. label Nov 3, 2023
@bpasero bpasero self-assigned this Nov 3, 2023
@bpasero
Copy link
Member

bpasero commented Nov 4, 2023

/duplicate #8171

@VSCodeTriageBot VSCodeTriageBot added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 4, 2023
@VSCodeTriageBot
Copy link
Collaborator

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2023
@bpasero
Copy link
Member

bpasero commented Nov 4, 2023

You can already drag and drop tabs between windows. What is missing is to drag a tab out of the window to open a new window. That is what #8171 is about.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality keep Issues we should not close as out of scope workbench-auxwindow Issues related to use of auxiliary ("floating") windows. workbench-tabs VS Code editor tab issues workbench-window Window management
Projects
None yet
Development

No branches or pull requests

6 participants
@bpasero @Chiramisu @ArturoDent @andrewyguo @VSCodeTriageBot and others