Open bjohas opened 2 years ago
If I'm interpreting this correctly https://stackoverflow.com/questions/8451189/chrome-windows-getcurrent-is-not-returning-the-list-of-opened-tabs, then it looks like chrome.windows.getCurrent
would get the window:
chrome.windows.getCurrent(function(win)
{
chrome.tabs.getAllInWindow(win.id, function(tabs)
{
// Should output an array of tab objects to your dev console.
console.debug(tabs);
});
});
It wonder whether it may be possible to implement that? I.e., brotab active
would get the active tab in each window, but brotab activewindow
would get the active window.
Just to add that, as far as I can see, this function would just be:
bt query +currentWindow
I.e., the command already exists.
Related to https://github.com/balta2ar/brotab/issues/65, does brotab know which window has focus? Or does brotab only know which tab (within a window) is active?