-
-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Feature request via email:
Please add a shortcut that Opens the Current Tab and Tabs To The Right Each In Separate, Maximized Windows. In other words, I love opening the current tab and tabs to the right in a new, maximized window. However, what I often need is for each of those tabs to the right to open in new, separate, maximized windows.
While you’re at it, why not add this other option, “Create a new, maximized window from each tab.” This would separate out each tab into its own window.
And on the Chrome Store (Ref):
Sophia Jingru (5 stars) May 10, 2018
Extremely useful extension, especially for when I have a lot of tabs of homework and need to start sorting by subject. Very simple to use. Would like it if the new window was opened full screen, but that's just a minor issue.
Dean (5 stars) Aug 22, 2024
Thanks for the great extension!Feature Request: Please add a shortcut that Opens the Current Tab and Tabs To The Right Each In Separate, Maximized Windows? In other words, I love opening the current tab and tabs to the right in a new, maximized window. However, what I often need is for each of those tabs to the right to open in new, separate, maximized windows. Thanks for your consideration!
By the way, when a New Window is opened, it doesn't open maximized. Does anyone know how to make the New Window always open Maximized? It would be even more amazing to create a shortcut that opened to a "New, Maximized Window on Monitor 1" or New, Maximized Window on Monitor 2."
Some Chrome Extension API docs potentially related to this feature request:
- https://developer.chrome.com/docs/extensions/mv2/reference/windows#type-Window
-
state
: WindowState`
The state of this browser window.
-
- https://developer.chrome.com/docs/extensions/mv2/reference/windows#type-WindowState
-
The state of this browser window.
-
- "normal": Normal window state (not minimized, maximized, or fullscreen).
- "minimized": Minimized window state.
- "maximized": Maximized window state.
- "fullscreen": Fullscreen window state.
- "locked-fullscreen": Locked fullscreen window state. This fullscreen state cannot be exited by user action and is available only to allowlisted extensions on Chrome OS.
-
- https://developer.chrome.com/docs/extensions/mv2/reference/windows#method-create
-
Creates (opens) a new browser window with any optional sizing, position, or default URL provided.
-
state: WindowState
The initial state of the window. Theminimized
,maximized
, andfullscreen
states cannot be combined withleft
,top
,width
, orheight
.
-
- https://developer.chrome.com/docs/extensions/mv2/reference/windows#method-update
-
Updates the properties of a window. Specify only the properties that to be changed; unspecified properties are unchanged.
-
This is the extension code that currently (in the MV3 version of the extension at least, see #13 , #20) handles creating a new window:
chrome-NewWindowWithTabsToRight/src/service_worker.js
Lines 154 to 169 in 6c348cc
/** | |
* Creates a new window with the specified tabs. | |
* | |
* @param {number[]} tabIds - The IDs of the tabs to move to the new window. | |
* | |
* @see {@link https://developer.chrome.com/docs/extensions/reference/api/windows#method-create} | |
* @see {@link https://developer.chrome.com/docs/extensions/reference/api/tabs#method-move} | |
*/ | |
async function createWindowWithTabs(tabIds) { | |
if (!tabIds || tabIds.length === 0) return; | |
const newWindow = await chrome.windows.create({ tabId: tabIds[0] }); | |
if (tabIds.length > 1) { | |
await chrome.tabs.move(tabIds.slice(1), { windowId: newWindow.id, index: -1 }); | |
} | |
} |